Changeset 841


Ignore:
Timestamp:
Feb 4, 2014, 7:34:29 PM (12 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.6: more logging in locking code

Location:
trunk/server/lib/tdb/common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/lib/tdb/common/io.c

    r840 r841  
    101101        // 2. if the write lock wasn't set, we try to unlock the segment
    102102        //    first and add the write lock afterwards
    103         int upgradeLockRC = tdb_brlock(tdb, F_WRLCK, off, len, TDB_LOCK_NOWAIT);
     103        int upgradeLockRC = 0;
     104        upgradeLockRC = tdb_brlock(tdb, F_WRLCK, off, len, TDB_LOCK_NOWAIT);
    104105        if (upgradeLockRC != 0) {
    105106                tdb_brunlock(tdb, F_RDLCK, off, len);
  • trunk/server/lib/tdb/common/lock.c

    r840 r841  
    5454        else
    5555                cmd = F_SETLK;
     56
     57        TDB_LOG((tdb, TDB_DEBUG_TRACE,"fcntl_lock in: (fd=%d) offset=%d rw_type=%d len=%d\n",
     58                 tdb->fd, off, rw, len));
    5659
    5760        int rc = fcntl(tdb->fd, cmd, &fl);
     
    148151
    149152#ifdef __OS2__
     153        TDB_LOG((tdb, TDB_DEBUG_TRACE,"fcntl_unlock in: (fd=%d) offset=%d rw_type=%d len=%d\n",
     154                 tdb->fd, off, rw, len));
     155
    150156        int rc = fcntl(tdb->fd, F_SETLKW, &fl);
    151157        // if the first unlock doesn't work and it's a complete unlock,
Note: See TracChangeset for help on using the changeset viewer.