Skip to content

Commit

Permalink
modify flags
Browse files Browse the repository at this point in the history
  • Loading branch information
leviathan authored and leviathan committed Feb 19, 2017
1 parent 46ce746 commit eadd063
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/pika_command.h
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ enum CmdFlags {
kCmdFlagsNoPrior = 0, //default noprior
kCmdFlagsPrior = 128,
kCmdFlagsNoAdminRequire = 0, //default no need admin
kCmdFlagsAdminRequire = 255
kCmdFlagsAdminRequire = 256
};


Expand Down
2 changes: 1 addition & 1 deletion src/pika_command.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit eadd063

Please sign in to comment.