Skip to content
Snippets Groups Projects
Commit 79f05762 authored by Vladimir Davydov's avatar Vladimir Davydov
Browse files

trigger: make trigger_run() exception safe

To convert engine and space infrastructure to C, we need to make txn
usable from C code. The only reason why we can't convert txn.cc to C
right now is triggers: they are set from alter.cc and may throw
exceptions. To handle this, let's make trigger_run() catch all
exceptions and return an error code instead. For C++ code, introduce
trigger_run_xc() which calls trigger_run() under the hood and throws
the exception suppressed by it.

Needed for #2776
parent 424d786e
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment