From 10606b7e3bdad19a60953dbad9e1d541a1a3b805 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Wed, 14 Sep 2011 07:53:13 +0930 Subject: tdb2: unify tdb1_delete into tdb_delete. Switch on the TDB_VERSION1 flag. Signed-off-by: Rusty Russell (Imported from CCAN commit acb26c9c3ee054c8b2141db25c9bd7be064e425c) --- lib/tdb2/tdb1_tdb.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/tdb2/tdb1_tdb.c') diff --git a/lib/tdb2/tdb1_tdb.c b/lib/tdb2/tdb1_tdb.c index 895a8c2ae5..16e945974e 100644 --- a/lib/tdb2/tdb1_tdb.c +++ b/lib/tdb2/tdb1_tdb.c @@ -434,6 +434,7 @@ int tdb1_delete(struct tdb_context *tdb, TDB_DATA key) uint32_t hash = tdb_hash(tdb, key.dptr, key.dsize); int ret; + assert(tdb->flags & TDB_VERSION1); ret = tdb1_delete_hash(tdb, key, hash); return ret; } -- cgit