summaryrefslogtreecommitdiff
path: root/source4/lib/tdb/common/tdb.c
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 14:48:27 -0500
commit6cb2ce4275b727e220ab24bd22aa65f3f47e0557 (patch)
tree9f65dd5e41f652f17308069665641c75d57aebb0 /source4/lib/tdb/common/tdb.c
parentb0de151fdd12429e2553884deae5703ff0d06758 (diff)
downloadsamba-6cb2ce4275b727e220ab24bd22aa65f3f47e0557.tar.gz
samba-6cb2ce4275b727e220ab24bd22aa65f3f47e0557.tar.bz2
samba-6cb2ce4275b727e220ab24bd22aa65f3f47e0557.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 e518c68fc5446304611d096ac2e3cab744734fc3)
Diffstat (limited to 'source4/lib/tdb/common/tdb.c')
-rw-r--r--source4/lib/tdb/common/tdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/tdb/common/tdb.c b/source4/lib/tdb/common/tdb.c
index 5810f46d56..4a1a3b9c6f 100644
--- a/source4/lib/tdb/common/tdb.c
+++ b/source4/lib/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;