@@ -566,17 +566,13 @@ class CommandXGroup : public Commander {
566566 }
567567
568568 if (subcommand_ == " destroy" ) {
569- uint64_t delete_cnt = 0 ;
570- auto s = stream_db.DestroyGroup (ctx, stream_name_, group_name_, &delete_cnt );
569+ bool destroyed = false ;
570+ auto s = stream_db.DestroyGroup (ctx, stream_name_, group_name_, &destroyed );
571571 if (!s.ok ()) {
572572 return {Status::RedisExecErr, s.ToString ()};
573573 }
574574
575- if (delete_cnt > 0 ) {
576- *output = redis::Integer (1 );
577- } else {
578- *output = redis::Integer (0 );
579- }
575+ *output = redis::Integer (destroyed ? 1 : 0 );
580576 }
581577
582578 if (subcommand_ == " createconsumer" ) {
@@ -1891,7 +1887,7 @@ REDIS_REGISTER_COMMANDS(Stream, MakeCmdAttr<CommandXAck>("xack", -4, "write no-d
18911887 MakeCmdAttr<CommandXInfo>(" xinfo" , -2 , " read-only" , NO_KEY),
18921888 MakeCmdAttr<CommandXPending>(" xpending" , -3 , " read-only" , 1 , 1 , 1 ),
18931889 MakeCmdAttr<CommandXRange>(" xrange" , -4 , " read-only" , 1 , 1 , 1 ),
1894- MakeCmdAttr<CommandXRevRange>(" xrevrange" , -2 , " read-only" , 1 , 1 , 1 ),
1890+ MakeCmdAttr<CommandXRevRange>(" xrevrange" , -4 , " read-only" , 1 , 1 , 1 ),
18951891 MakeCmdAttr<CommandXRead>(" xread" , -4 , " read-only blocking" , CommandXRead::keyRangeGen),
18961892 MakeCmdAttr<CommandXReadGroup>(" xreadgroup" , -7 , " write blocking" ,
18971893 CommandXReadGroup::keyRangeGen),
0 commit comments