ITS#7369 abort txn before exiting

vmware
Howard Chu 12 years ago
parent 916995236e
commit a2d1b42e39
  1. 1
      libraries/libmdb/mdb_stat.c
  2. 1
      libraries/libmdb/mdb_stata.c

@ -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);
}

Loading…
Cancel
Save