Ignore:
Timestamp:
Mar 11, 2009, 9:14:55 AM (16 years ago)
Author:
Paul Smedley
Message:

Add 'missing' 3.0.34 diffs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/tdb/common/open.c

    r62 r165  
    364364         * do with disk files, and resume here by releasing their
    365365         * 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
    366370        tdb->next = tdbs;
    367371        tdbs = tdb;
     
    370374 fail:
    371375        { int save_errno = errno;
    372         tdb->methods->tdb_brlock(tdb, GLOBAL_LOCK, F_UNLCK, F_SETLKW, 0, 1);
    373376
    374377        if (!tdb)
     
    555558        if ((tdb->flags & TDB_CLEAR_IF_FIRST) &&
    556559            (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 crash
    558560                TDB_LOG((tdb, TDB_DEBUG_FATAL, "tdb_reopen: failed to obtain active lock\n"));
    559561                goto fail;
    560 //#endif
    561562        }
    562563        if (fstat(tdb->fd, &st) != 0) {
Note: See TracChangeset for help on using the changeset viewer.