diff --git a/src/box/txn.h b/src/box/txn.h index 271d5f93130439b7301632853300b6a672f78c97..3996a01f18e5011d9073eb6d4574aee43b3b8570 100644 --- a/src/box/txn.h +++ b/src/box/txn.h @@ -180,7 +180,7 @@ struct txn { * First statement at each statement-level. * Needed to rollback sub statements. */ - struct stailq_entry *sub_stmt_begin[TXN_SUB_STMT_MAX]; + struct stailq_entry *sub_stmt_begin[TXN_SUB_STMT_MAX + 1]; /** LSN of this transaction when written to WAL. */ int64_t signature; /** Engine involved in multi-statement transaction. */