modify flags
MODIFY
include/pika_command.h
include/pika_command.h
@@ -199,7 +199,7 @@ enum CmdFlags {
kCmdFlagsNoPrior = 0, //default noprior
kCmdFlagsPrior = 128,
kCmdFlagsNoAdminRequire = 0, //default no need admin
- kCmdFlagsAdminRequire = 255
+ kCmdFlagsAdminRequire = 256
};

MODIFY
src/pika_command.cc
src/pika_command.cc
@@ -395,7 +395,7 @@ void InitCmdInfoTable() {
CmdInfo* geoposptr = new CmdInfo(kCmdNameGeoPos, -3, kCmdFlagsRead | kCmdFlagsGeo);
cmd_infos.insert(std::pair<std::string, CmdInfo*>(kCmdNameGeoPos, geoposptr));
////GeoDist
- CmdInfo* geodistptr = new CmdInfo(kCmdNameGeoDist, -3, kCmdFlagsWrite | kCmdFlagsGeo);
+ CmdInfo* geodistptr = new CmdInfo(kCmdNameGeoDist, -3, kCmdFlagsRead | kCmdFlagsGeo);
cmd_infos.insert(std::pair<std::string, CmdInfo*>(kCmdNameGeoDist, geodistptr));
////GeoHash
CmdInfo* geohashptr = new CmdInfo(kCmdNameGeoHash, -3, kCmdFlagsRead | kCmdFlagsGeo);

modify flags