Changeset 94
- Timestamp:
- Oct 1, 2007, 12:44:41 AM (18 years ago)
- Location:
- trunk/samba/source/lib/tdb/common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/samba/source/lib/tdb/common/open.c
r90 r94 362 362 * do with disk files, and resume here by releasing their 363 363 * global lock and hooking into the active list. */ 364 #ifndef __OS2__ 364 365 if (tdb->methods->tdb_brlock(tdb, GLOBAL_LOCK, F_UNLCK, F_SETLKW, 0, 1) == -1) 365 366 goto fail; 367 #endif 366 368 tdb->next = tdbs; 367 369 tdbs = tdb; … … 475 477 return 0; /* Nothing to do. */ 476 478 } 479 477 480 #ifdef __OS2__ 478 479 481 DosCloseMutexSem( tdb->hGlobalLock); 480 482 tdb->hGlobalLock = 0; -
trunk/samba/source/lib/tdb/common/transaction.c
r81 r94 533 533 tdb->methods = tdb->transaction->io_methods; 534 534 535 #ifndef __OS2__ // YD the transactionlock is an exclusive lock for us, it is enough.535 #ifndef __OS2__ // YD the global lock is an exclusive lock for us, it is enough. 536 536 tdb_brlock(tdb, FREELIST_TOP, F_UNLCK, F_SETLKW, 0, 0); 537 537 #endif … … 823 823 824 824 /* upgrade the main transaction lock region to a write lock */ 825 #ifndef __OS2__ // YD the transactionlock is an exclusive lock for us, it is enough.825 #ifndef __OS2__ // YD the global lock is an exclusive lock for us, it is enough. 826 826 if (tdb_brlock_upgrade(tdb, FREELIST_TOP, 0) == -1) { 827 827 TDB_LOG((tdb, TDB_DEBUG_ERROR, "tdb_transaction_start: failed to upgrade hash locks\n"));
Note:
See TracChangeset
for help on using the changeset viewer.