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

Function zpopmaxCommand

app/redis-6.2.6/src/t_zset.c:3935–3942  ·  view source on GitHub ↗

ZMAXPOP key [ ] */

Source from the content-addressed store, hash-verified

3933
3934/* ZMAXPOP key [<count>] */
3935void zpopmaxCommand(client *c) {
3936 if (c->argc > 3) {
3937 addReplyErrorObject(c,shared.syntaxerr);
3938 return;
3939 }
3940 genericZpopCommand(c,&c->argv[1],1,ZSET_MAX,0,
3941 c->argc == 3 ? c->argv[2] : NULL);
3942}
3943
3944/* BZPOPMIN / BZPOPMAX actual implementation. */
3945void blockingGenericZpopCommand(client *c, int where) {

Callers

nothing calls this directly

Calls 2

addReplyErrorObjectFunction · 0.85
genericZpopCommandFunction · 0.85

Tested by

no test coverage detected