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

Function QueryCtx_GetUndoLog

src/query_ctx.c:257–265  ·  view source on GitHub ↗

retrieve undo log

Source from the content-addressed store, hash-verified

255
256// retrieve undo log
257UndoLog QueryCtx_GetUndoLog(void) {
258 QueryCtx *ctx = _QueryCtx_GetCtx();
259 ASSERT(ctx != NULL);
260
261 if(ctx->undo_log == NULL) {
262 ctx->undo_log = UndoLog_New();
263 }
264 return ctx->undo_log;
265}
266
267// rollback the current command
268void QueryCtx_Rollback(void) {

Callers 8

CreateNodeFunction · 0.85
CreateEdgeFunction · 0.85
DeleteNodesFunction · 0.85
DeleteEdgesFunction · 0.85
UpdateEntityPropertiesFunction · 0.85
UpdateNodeLabelsFunction · 0.85
AddSchemaFunction · 0.85
FindOrAddAttributeFunction · 0.85

Calls 2

_QueryCtx_GetCtxFunction · 0.85
UndoLog_NewFunction · 0.85

Tested by

no test coverage detected