Commit bea2c5d4 authored by Howard Chu's avatar Howard Chu
Browse files

More for batched writes

Only usable if backend supports txns
parent 535cf92f
......@@ -2978,10 +2978,12 @@ syncrepl_entry(
si->si_refreshCount = 0;
si->si_refreshTxn = NULL;
}
if ( !si->si_refreshCount ) {
op->o_bd->bd_info->bi_op_txn( op, SLAP_TXN_BEGIN, &si->si_refreshTxn );
if ( op->o_bd->bd_info->bi_op_txn ) {
if ( !si->si_refreshCount ) {
op->o_bd->bd_info->bi_op_txn( op, SLAP_TXN_BEGIN, &si->si_refreshTxn );
}
si->si_refreshCount++;
}
si->si_refreshCount++;
}
slap_op_time( &op->o_time, &op->o_tincr );
......
Supports Markdown
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