diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-09-26 01:12:12 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:38:55 -0500 |
commit | be27946d84dbf9155d9505d00abe91089a9b8125 (patch) | |
tree | 90ed05cc9e2f8394822579f2fc9bc0cefa671ba1 /source4/lib/tdb/common/tdb_private.h | |
parent | 9593101ec118dd242bf25fabf3e17c58269e632c (diff) | |
download | samba-be27946d84dbf9155d9505d00abe91089a9b8125.tar.gz samba-be27946d84dbf9155d9505d00abe91089a9b8125.tar.bz2 samba-be27946d84dbf9155d9505d00abe91089a9b8125.zip |
r10492: work around a bug in solaris which cases lock upgrades to fail with
EDEADLK even when progress can be made. This is not a good solution,
but I can't find anything better.
(This used to be commit 980dd17f7d0a622cd772afc9ba15e50007ad9c6e)
Diffstat (limited to 'source4/lib/tdb/common/tdb_private.h')
-rw-r--r-- | source4/lib/tdb/common/tdb_private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/lib/tdb/common/tdb_private.h b/source4/lib/tdb/common/tdb_private.h index d7471537d8..ce105a2a56 100644 --- a/source4/lib/tdb/common/tdb_private.h +++ b/source4/lib/tdb/common/tdb_private.h @@ -216,6 +216,7 @@ void tdb_mmap(struct tdb_context *tdb); int tdb_lock(struct tdb_context *tdb, int list, int ltype); int tdb_unlock(struct tdb_context *tdb, int list, int ltype); int tdb_brlock(struct tdb_context *tdb, tdb_off_t offset, int rw_type, int lck_type, int probe); +int tdb_brlock_upgrade(struct tdb_context *tdb, tdb_off_t offset, size_t len); int tdb_brlock_len(struct tdb_context *tdb, tdb_off_t offset, int rw_type, int lck_type, int probe, size_t len); int tdb_write_lock_record(struct tdb_context *tdb, tdb_off_t off); |