[tarantool-patches] Re: [PATCH 1/3] txn: move fk_deferred_count from psql_txn to txn

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Fri Aug 9 23:59:23 MSK 2019


Hi! Thanks for the patch!

> diff --git a/src/box/txn.h b/src/box/txn.h
> index 37d90932b..87e880a6a 100644
> --- a/src/box/txn.h
> +++ b/src/box/txn.h
> @@ -213,6 +208,7 @@ struct txn {
>  	struct trigger fiber_on_stop;
>  	/** Commit and rollback triggers. */
>  	struct rlist on_commit, on_rollback;
> +	uint32_t fk_deferred_count;

Please, add a comment. A detailed one. That this number is used
by SQL only, what does it mean 'deferred fk', why is it stored
in the transaction.

>  	struct sql_txn *psql_txn;
>  };
>  
> 




More information about the Tarantool-patches mailing list