r21410: We have to increment the sequence number also when tdb_update_hash()
authorVolker Lendecke <vlendec@samba.org>
Sat, 17 Feb 2007 21:46:13 +0000 (21:46 +0000)
committerVolker Lendecke <vlendec@samba.org>
Sat, 17 Feb 2007 21:46:13 +0000 (21:46 +0000)
succeeded. Found while testing the brlock seqnum patch.

Tridge, please check!

Volker

source/tdb/common/tdb.c

index addb5b43782249a573a7a6b2dbcf5d1331e86f71..9760ceebf5dcc2fc60fc414a720d0751f7d69ba0 100644 (file)
@@ -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;