MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / QueryCtx_Rollback

Function QueryCtx_Rollback

src/query_ctx.c:268–277  ·  view source on GitHub ↗

rollback the current command

Source from the content-addressed store, hash-verified

266
267// rollback the current command
268void QueryCtx_Rollback(void) {
269 QueryCtx *ctx = _QueryCtx_GetCtx();
270 ASSERT(ctx != NULL);
271
272 Graph_ResetReservedNode(ctx->gc->g);
273
274 if(ctx->undo_log == NULL) return;
275
276 UndoLog_Rollback(&ctx->undo_log);
277}
278
279// retrieve effects-buffer
280EffectsBuffer *QueryCtx_GetEffectsBuffer(void) {

Callers 2

_ExecuteQueryFunction · 0.85
_Constraint_CreateFunction · 0.85

Calls 3

_QueryCtx_GetCtxFunction · 0.85
Graph_ResetReservedNodeFunction · 0.85
UndoLog_RollbackFunction · 0.85

Tested by

no test coverage detected