[Tarantool-patches] [PATCH v3 05/10] box: write PROMOTE even for empty limbo

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Fri Apr 16 02:21:17 MSK 2021


Thanks for the patch!

> @@ -1540,11 +1542,10 @@ box_clear_synchro_queue(bool try_wait)
>  	 * in the limbo must've come through the applier meaning they already
>  	 * have an lsn assigned, even if their WAL write hasn't finished yet.
>  	 */
> -	int64_t wait_lsn = txn_limbo_last_synchro_entry(&txn_limbo)->lsn;
> +	wait_lsn = txn_limbo_last_synchro_entry(&txn_limbo)->lsn;
>  	assert(wait_lsn > 0);
>  
> -	int quorum = replication_synchro_quorum;
> -	int rc = box_wait_quorum(former_leader_id, wait_lsn, quorum,
> +	rc = box_wait_quorum(former_leader_id, wait_lsn, quorum,
>  				 replication_synchro_timeout);

The second line became misaligned.


More information about the Tarantool-patches mailing list