]> git.sur5r.net Git - openldap/commitdiff
ITS#8215 Use the correct transaction
authorOndřej Kuzník <ondra@mistotebe.net>
Tue, 11 Aug 2015 12:25:11 +0000 (14:25 +0200)
committerHoward Chu <hyc@openldap.org>
Sun, 25 Oct 2015 09:01:22 +0000 (09:01 +0000)
servers/slapd/back-mdb/tools.c

index d7b96dc45c50f84b4f01cda33369b6a1fccc04ee..f0392ecb81d44ac0987395edeb86f7b4da509245 100644 (file)
@@ -173,8 +173,8 @@ int mdb_tool_entry_close(
                slapd_shutdown = 0;
                ch_free( mdb_tool_index_rec );
                mdb_tool_index_tcount = mdb_tool_threads - 1;
-               if (txn)
-                       MDB_TOOL_IDL_FLUSH( be, txn );
+               if (mdb_tool_txn)
+                       MDB_TOOL_IDL_FLUSH( be, mdb_tool_txn );
                for (i=0; i<mdb_tool_threads; i++) {
                        mdb_tool_idl_cache *ic;
                        mdb_tool_idl_cache_entry *ice;