ldb: no need to call del_transaction in ldb_transaction_commit
[samba.git] / lib / ldb / common / ldb.c
index 5525e70b46531b8c358740e59ad24543ddb7dddc..44a487ba9871b7ebaff83baee3534a3856f52050 100644 (file)
@@ -498,9 +498,6 @@ int ldb_transaction_commit(struct ldb_context *ldb)
                        ldb_debug(next_module->ldb, LDB_DEBUG_TRACE, "commit ldb transaction error: %s",
                                  ldb_errstring(next_module->ldb));
                }
-               /* cancel the transaction */
-               FIRST_OP(ldb, del_transaction);
-               next_module->ops->del_transaction(next_module);
        }
        return status;
 }