MCPcopy Create free account
hub / github.com/F-Stack/f-stack / RM_AbortBlock

Function RM_AbortBlock

app/redis-6.2.6/src/module.c:5531–5535  ·  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

5529/* Abort a blocked client blocking operation: the client will be unblocked
5530 * without firing any callback. */
5531int RM_AbortBlock(RedisModuleBlockedClient *bc) {
5532 bc->reply_callback = NULL;
5533 bc->disconnect_callback = NULL;
5534 return RM_UnblockClient(bc,NULL);
5535}
5536
5537/* Set a callback that will be called if a blocked client disconnects
5538 * 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