Changeset 165 for branches/samba-3.0/source/tdb/common/open.c
- Timestamp:
- Mar 11, 2009, 9:14:55 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/source/tdb/common/open.c
r62 r165 364 364 * do with disk files, and resume here by releasing their 365 365 * global lock and hooking into the active list. */ 366 #ifndef __OS2__ 367 if (tdb->methods->tdb_brlock(tdb, GLOBAL_LOCK, F_UNLCK, F_SETLKW, 0, 1) == -1) 368 goto fail; 369 #endif 366 370 tdb->next = tdbs; 367 371 tdbs = tdb; … … 370 374 fail: 371 375 { int save_errno = errno; 372 tdb->methods->tdb_brlock(tdb, GLOBAL_LOCK, F_UNLCK, F_SETLKW, 0, 1);373 376 374 377 if (!tdb) … … 555 558 if ((tdb->flags & TDB_CLEAR_IF_FIRST) && 556 559 (tdb->methods->tdb_brlock(tdb, ACTIVE_LOCK, F_RDLCK, F_SETLKW, 0, 1) == -1)) { 557 // YD sem handle was wrong, testme #ifndef __OS2__ // PS 20070511 hack for WINS server crash558 560 TDB_LOG((tdb, TDB_DEBUG_FATAL, "tdb_reopen: failed to obtain active lock\n")); 559 561 goto fail; 560 //#endif561 562 } 562 563 if (fstat(tdb->fd, &st) != 0) {
Note:
See TracChangeset
for help on using the changeset viewer.