From: Howard Chu Date: Fri, 24 Aug 2012 12:23:55 +0000 (-0700) Subject: ITS#7369 abort txn before exiting X-Git-Tag: OPENLDAP_REL_ENG_2_4_33~31^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a2d1b42e3921d5c874a8f35fcd42047af604ce96;p=openldap ITS#7369 abort txn before exiting --- diff --git a/libraries/libmdb/mdb_stat.c b/libraries/libmdb/mdb_stat.c index a5f484d063..5832e267c7 100644 --- a/libraries/libmdb/mdb_stat.c +++ b/libraries/libmdb/mdb_stat.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); } diff --git a/libraries/libmdb/mdb_stata.c b/libraries/libmdb/mdb_stata.c index 106cb8eb1f..62f019fe94 100644 --- a/libraries/libmdb/mdb_stata.c +++ b/libraries/libmdb/mdb_stata.c @@ -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); }