]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9095 insert missing commit at end of slapindex processing
authorHoward Chu <hyc@openldap.org>
Fri, 11 Oct 2019 19:47:29 +0000 (20:47 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 21 Nov 2019 20:26:11 +0000 (20:26 +0000)
servers/slapd/back-mdb/tools.c

index 5c2dbf053bfb9997e644b6fceb0737b52467652b..e459eb3501665d1456c7766ee0ffe37141ae2eb1 100644 (file)
@@ -194,6 +194,17 @@ int mdb_tool_entry_close(
                }
                mdb_tool_txn = NULL;
        }
+       if( txi ) {
+               int rc;
+               if (( rc = mdb_txn_commit( txi ))) {
+                       Debug( LDAP_DEBUG_ANY,
+                               LDAP_XSTRING(mdb_tool_entry_close) ": database %s: "
+                               "txn_commit failed: %s (%d)\n",
+                               be->be_suffix[0].bv_val, mdb_strerror(rc), rc );
+                       return -1;
+               }
+               txi = NULL;
+       }
 
        if( nholes ) {
                unsigned i;