| 390 | } |
| 391 | |
| 392 | static void _QueryCtx_UnlockCommit |
| 393 | ( |
| 394 | QueryCtx *ctx |
| 395 | ) { |
| 396 | GraphContext *gc = ctx->gc; |
| 397 | |
| 398 | ctx->internal_exec_ctx.locked_for_commit = false; |
| 399 | // release graph R/W lock |
| 400 | Graph_ReleaseLock(gc->g); |
| 401 | |
| 402 | // close Key |
| 403 | RedisModule_CloseKey(ctx->internal_exec_ctx.key); |
| 404 | |
| 405 | // unlock GIL |
| 406 | _QueryCtx_ThreadSafeContextUnlock(ctx); |
| 407 | } |
| 408 | |
| 409 | // starts an ulocking flow and notifies Redis after commiting changes |
| 410 | // the only writer which allow to perform the unlock and commit (replicate) |
no test coverage detected