- ok1(tdb1_transaction_start(tdb) == 0);
- ok1(tdb1_transaction_start(tdb) == 0);
- ok1(tdb1_delete(tdb, key) == 0);
- ok1(tdb1_transaction_commit(tdb) == 0);
- ok1(!tdb1_exists(tdb, key));
- ok1(tdb1_transaction_commit(tdb) == 0);
- ok1(!tdb1_exists(tdb, key));
- tdb1_close(tdb);
+ ok1(tdb_transaction_start(tdb) == TDB_SUCCESS);
+ ok1(tdb_transaction_start(tdb) == TDB_SUCCESS);
+ ok1(tdb_delete(tdb, key) == TDB_SUCCESS);
+ ok1(tdb_transaction_commit(tdb) == TDB_SUCCESS);
+ ok1(!tdb_exists(tdb, key));
+ ok1(tdb_transaction_commit(tdb) == TDB_SUCCESS);
+ ok1(!tdb_exists(tdb, key));
+ tdb_close(tdb);