mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
More for batched writes
Only usable if backend supports txns
This commit is contained in:
parent
535cf92ff4
commit
bea2c5d438
1 changed files with 5 additions and 3 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue