summaryrefslogtreecommitdiff
path: root/source4/lib/tdb/common/traverse.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-01-15 14:05:47 +1100
committerAndrew Tridgell <tridge@samba.org>2008-01-15 14:05:47 +1100
commit9170998427ebbb7abfd9b482fb6e0d051bca5205 (patch)
tree52591d9535115e651b9db13328d32cef44c3b6e9 /source4/lib/tdb/common/traverse.c
parentf233fd11b3afd49269d11653f3447129d97a7fff (diff)
downloadsamba-9170998427ebbb7abfd9b482fb6e0d051bca5205.tar.gz
samba-9170998427ebbb7abfd9b482fb6e0d051bca5205.tar.bz2
samba-9170998427ebbb7abfd9b482fb6e0d051bca5205.zip
merged tdb from ctdb bzr tree
(This used to be commit ed0c3a0f74c305b3b8554b05c3f97cf79db8296a)
Diffstat (limited to 'source4/lib/tdb/common/traverse.c')
-rw-r--r--source4/lib/tdb/common/traverse.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/lib/tdb/common/traverse.c b/source4/lib/tdb/common/traverse.c
index 6fc576a55a..2bde1270a0 100644
--- a/source4/lib/tdb/common/traverse.c
+++ b/source4/lib/tdb/common/traverse.c
@@ -238,7 +238,9 @@ int tdb_traverse(struct tdb_context *tdb,
return -1;
}
+ tdb->traverse_write++;
ret = tdb_traverse_internal(tdb, fn, private_data, &tl);
+ tdb->traverse_write--;
tdb_transaction_unlock(tdb);
@@ -330,3 +332,4 @@ TDB_DATA tdb_nextkey(struct tdb_context *tdb, TDB_DATA oldkey)
TDB_LOG((tdb, TDB_DEBUG_FATAL, "tdb_nextkey: WARNING tdb_unlock failed!\n"));
return key;
}
+