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

Function zpopmaxCommand

src/t_zset.cpp:3933–3940  ·  view source on GitHub ↗

ZMAXPOP key [ ] */

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

addReplyErrorObjectFunction · 0.85
genericZpopCommandFunction · 0.85

Tested by

no test coverage detected