Reply to the client with an empty array. * * The function always returns REDISMODULE_OK. */
| 1613 | * |
| 1614 | * The function always returns REDISMODULE_OK. */ |
| 1615 | int RM_ReplyWithEmptyArray(RedisModuleCtx *ctx) { |
| 1616 | client *c = moduleGetReplyClient(ctx); |
| 1617 | if (c == NULL) return REDISMODULE_OK; |
| 1618 | AeLocker locker; |
| 1619 | std::unique_lock<fastlock> lock(c->lock); |
| 1620 | locker.arm(c); |
| 1621 | addReply(c,shared.emptyarray); |
| 1622 | return REDISMODULE_OK; |
| 1623 | } |
| 1624 | |
| 1625 | /* When RedisModule_ReplyWithArray() is used with the argument |
| 1626 | * REDISMODULE_POSTPONED_ARRAY_LEN, because we don't know beforehand the number |
nothing calls this directly
no test coverage detected