MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / RM_AbortBlock

Function RM_AbortBlock

src/module.cpp:5641–5645  ·  view source on GitHub ↗

Abort a blocked client blocking operation: the client will be unblocked * without firing any callback. */

Source from the content-addressed store, hash-verified

5639/* Abort a blocked client blocking operation: the client will be unblocked
5640 * without firing any callback. */
5641int RM_AbortBlock(RedisModuleBlockedClient *bc) {
5642 bc->reply_callback = NULL;
5643 bc->disconnect_callback = NULL;
5644 return RM_UnblockClient(bc,NULL);
5645}
5646
5647/* Set a callback that will be called if a blocked client disconnects
5648 * before the module has a chance to call RedisModule_UnblockClient()

Callers

nothing calls this directly

Calls 1

RM_UnblockClientFunction · 0.85

Tested by

no test coverage detected