Changeset 841
- Timestamp:
- Feb 4, 2014, 7:34:29 PM (12 years ago)
- Location:
- trunk/server/lib/tdb/common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/lib/tdb/common/io.c
r840 r841 101 101 // 2. if the write lock wasn't set, we try to unlock the segment 102 102 // 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); 104 105 if (upgradeLockRC != 0) { 105 106 tdb_brunlock(tdb, F_RDLCK, off, len); -
trunk/server/lib/tdb/common/lock.c
r840 r841 54 54 else 55 55 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)); 56 59 57 60 int rc = fcntl(tdb->fd, cmd, &fl); … … 148 151 149 152 #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 150 156 int rc = fcntl(tdb->fd, F_SETLKW, &fl); 151 157 // if the first unlock doesn't work and it's a complete unlock,
Note:
See TracChangeset
for help on using the changeset viewer.