mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
Janitorial duty for tpot. Merge tdb error log fix.
Jeremy.
This commit is contained in:
parent
e6d0211775
commit
2186cbf28d
@ -237,10 +237,15 @@ static int tdb_brlock(TDB_CONTEXT *tdb, tdb_off offset,
|
||||
tdb->fd, offset, rw_type, lck_type));
|
||||
}
|
||||
/* Was it an alarm timeout ? */
|
||||
if (errno == EINTR && palarm_fired && *palarm_fired)
|
||||
if (errno == EINTR && palarm_fired && *palarm_fired) {
|
||||
TDB_LOG((tdb, 5, "tdb_brlock timed out (fd=%d) at offset %d rw_type=%d lck_type=%d\n",
|
||||
tdb->fd, offset, rw_type, lck_type));
|
||||
return TDB_ERRCODE(TDB_ERR_LOCK_TIMEOUT, -1);
|
||||
}
|
||||
/* Otherwise - generic lock error. */
|
||||
/* errno set by fcntl */
|
||||
TDB_LOG((tdb, 5, "tdb_brlock failed (fd=%d) at offset %d rw_type=%d lck_type=%d: %s\n",
|
||||
tdb->fd, offset, rw_type, lck_type, strerror(errno)));
|
||||
return TDB_ERRCODE(TDB_ERR_LOCK, -1);
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user