ITS#9095 insert missing commit at end of slapindex processing

This commit is contained in:
Howard Chu 2019-10-11 20:47:29 +01:00
parent 3be82f40d5
commit 4bc333c5e7

View File

@ -217,6 +217,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;