Skip to content
Snippets Groups Projects
Commit a2d1b42e authored by Howard Chu's avatar Howard Chu
Browse files

ITS#7369 abort txn before exiting

parent 91699523
No related branches found
No related tags found
No related merge requests found
......@@ -46,6 +46,7 @@ int main(int argc,char * argv[])
rc = mdb_open(txn, subname, 0, &dbi);
if (rc) {
printf("mdb_open failed, error %d\n", rc);
mdb_txn_abort(txn);
exit(1);
}
......
......@@ -44,6 +44,7 @@ int main(int argc,char * argv[])
rc = mdb_open(txn, NULL, 0, &dbi);
if (rc) {
printf("mdb_open failed, error %d\n", rc);
mdb_txn_abort(txn);
exit(1);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment