Commit 0dbbe8c0 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

ITS#8040 - Fix missing ifdefs for LAZY_COMMIT

parent 707d2a92
......@@ -744,8 +744,10 @@ mdb_opinfo_get( Operation *op, struct mdb_info *mdb, int rdonly, mdb_op_info **m
moi->moi_txn = mdb_tool_txn;
} else {
int flag = 0;
#ifdef SLAP_CONTROL_X_LAZY_COMMIT
if ( get_lazyCommit( op ))
flag |= MDB_NOMETASYNC;
#endif
rc = mdb_txn_begin( mdb->mi_dbenv, NULL, flag, &moi->moi_txn );
if (rc) {
Debug( LDAP_DEBUG_ANY, "mdb_opinfo_get: err %s(%d)\n",
......
......@@ -3815,8 +3815,10 @@ syncrepl_entry(
slap_queue_csn( op, syncCSN );
}
#ifdef SLAP_CONTROL_X_LAZY_COMMIT
if ( !si->si_refreshDone && si->si_lazyCommit )
op->o_lazyCommit = SLAP_CONTROL_NONCRITICAL;
#endif
slap_op_time( &op->o_time, &op->o_tincr );
switch ( syncstate ) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment