We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 04a21cb + cdaa949 commit 44a2e85Copy full SHA for 44a2e85
contrib/in_memory/undo.c
@@ -197,8 +197,16 @@ undo_xact_callback(XactEvent event, void *arg)
197
198
if (!IMXidIsValid(imxid))
199
{
200
- undo_stack = NULL;
201
- subxact_stack = NULL;
+ switch (event)
+ {
202
+ case XACT_EVENT_COMMIT:
203
+ case XACT_EVENT_ABORT:
204
+ undo_stack = NULL;
205
+ subxact_stack = NULL;
206
+ break;
207
+ default:
208
209
+ }
210
}
211
else
212
0 commit comments