Commit aad8ffcb authored by Rusty Russell's avatar Rusty Russell

tdb2: remove redundant pending transaction error check.

We do this lower down anyway.
parent 52c48431
......@@ -965,15 +965,6 @@ int tdb_transaction_commit(struct tdb_context *tdb)
tdb_trace(tdb, "tdb_transaction_commit");
if (tdb->transaction->transaction_error) {
tdb_transaction_cancel(tdb);
tdb_logerr(tdb, TDB_ERR_IO, TDB_LOG_ERROR,
"tdb_transaction_commit:"
" transaction error pending");
return -1;
}
if (tdb->transaction->nesting != 0) {
tdb->transaction->nesting--;
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment