summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-02-17 21:46:13 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:03 -0500
commitbadbfe0aaed065d627626a2305a1bde410d8c29e (patch)
tree0e7529046cd3caf1d5b60d078a000c1b41c50dd2 /source3
parentbca83e3b082d0f352d23a33a9774d5b577004bc5 (diff)
downloadsamba-badbfe0aaed065d627626a2305a1bde410d8c29e.tar.gz
samba-badbfe0aaed065d627626a2305a1bde410d8c29e.tar.bz2
samba-badbfe0aaed065d627626a2305a1bde410d8c29e.zip
r21410: We have to increment the sequence number also when tdb_update_hash()
succeeded. Found while testing the brlock seqnum patch. Tridge, please check! Volker (This used to be commit 815f2b19409dc015bb2a04b16224a7ac8071a991)
Diffstat (limited to 'source3')
-rw-r--r--source3/tdb/common/tdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/tdb/common/tdb.c b/source3/tdb/common/tdb.c
index addb5b4378..9760ceebf5 100644
--- a/source3/tdb/common/tdb.c
+++ b/source3/tdb/common/tdb.c
@@ -328,9 +328,9 @@ int tdb_store(struct tdb_context *tdb, TDB_DATA key, TDB_DATA dbuf, int flag)
goto fail;
}
+ out:
tdb_increment_seqnum(tdb);
- out:
SAFE_FREE(p);
tdb_unlock(tdb, BUCKET(hash), F_WRLCK);
return ret;