Changeset 829 for branches/samba-3.5.x/lib/tdb/common/open.c
- Timestamp:
- Nov 13, 2013, 2:36:44 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.5.x/lib/tdb/common/open.c
r781 r829 185 185 186 186 #ifdef __OS2__ 187 if (os2_ crtsem(tdb, name, "tdb_open_ex") != 0) {187 if (os2_CrtSem(tdb, name, "tdb_open_ex") != 0) { 188 188 goto fail; 189 189 } … … 407 407 SAFE_FREE(tdb->name); 408 408 #ifdef __OS2__ 409 DosCloseMutexSem( tdb->hGlobalLock); 410 tdb->hGlobalLock = 0; 411 DosCloseMutexSem( tdb->hActiveLock); 412 tdb->hActiveLock = 0; 413 DosCloseMutexSem( tdb->hTransactionLock); 414 tdb->hTransactionLock = 0; 409 os2_DltSem(tdb, "tdb_open_ex"); 415 410 #endif 416 411 if (tdb->fd != -1) … … 465 460 SAFE_FREE(tdb->lockrecs); 466 461 #ifdef __OS2__ 467 DosCloseMutexSem( tdb->hGlobalLock); 468 tdb->hGlobalLock = 0; 469 DosCloseMutexSem( tdb->hActiveLock); 470 tdb->hActiveLock = 0; 471 DosCloseMutexSem( tdb->hTransactionLock); 472 tdb->hTransactionLock = 0; 462 os2_DltSem(tdb, "tdb_close"); 473 463 #endif 474 464 … … 514 504 515 505 #ifdef __OS2__ 516 DosCloseMutexSem( tdb->hGlobalLock); 517 tdb->hGlobalLock = 0; 518 DosCloseMutexSem( tdb->hActiveLock); 519 tdb->hActiveLock = 0; 520 DosCloseMutexSem( tdb->hTransactionLock); 521 tdb->hTransactionLock = 0; 522 523 if (os2_crtsem(tdb, tdb->name, "tdb_reopen") != 0) { 506 os2_DltSem(tdb, "tdb_reopen"); 507 508 if (os2_CrtSem(tdb, tdb->name, "tdb_reopen") != 0) { 524 509 goto fail; 525 510 } … … 613 598 614 599 #ifdef __OS2__ 615 int os2_ crtsem(struct tdb_context *tdb, const char *name, const char *caller)600 int os2_CrtSem(struct tdb_context *tdb, const char *name, const char *caller) 616 601 { 617 602 // name could be null, so handle it … … 661 646 return 0; 662 647 } 648 649 int os2_DltSem(struct tdb_context *tdb, const char *caller) 650 { 651 DosCloseMutexSem( tdb->hGlobalLock); 652 tdb->hGlobalLock = 0; 653 DosCloseMutexSem( tdb->hActiveLock); 654 tdb->hActiveLock = 0; 655 DosCloseMutexSem( tdb->hTransactionLock); 656 tdb->hTransactionLock = 0; 657 658 return 0; 659 } 663 660 #endif 664 661
Note:
See TracChangeset
for help on using the changeset viewer.