Fix crash in space on_replace triggers.
During DDL operations triggers of old space and new created space are swapped. This leads to crash in case if this swap occurs from space on_replace triggers. This patch banned all DDL operations from on_replace triggers. Closes #6920 @TarantoolBot document Title: Ban DDL operations from space on_replace triggers Previously user can set function for space on_replace trigger, which performs DDL operation. This may leads to tarantool crash, that's why this patch bans DDL operations from on_replace triggers. All this operations fails with error: "Space on_replace trigger does not support DDL operations".
Showing
- changelogs/unreleased/gh-6920-fix-crash-in-on-replace-triggers.md 4 additions, 0 deletions...gs/unreleased/gh-6920-fix-crash-in-on-replace-triggers.md
- src/box/schema.cc 6 additions, 0 deletionssrc/box/schema.cc
- src/box/txn.c 5 additions, 1 deletionsrc/box/txn.c
- src/box/txn.h 4 additions, 0 deletionssrc/box/txn.h
- test/box/on_replace.result 10 additions, 18 deletionstest/box/on_replace.result
Loading