Skip to content

Commit

Permalink
comment fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hahahashen committed Aug 17, 2024
1 parent 44f20eb commit b2e6cdf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
3 changes: 2 additions & 1 deletion src/client.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ namespace pikiwidb {

struct CommandStatistics {
CommandStatistics() = default;
CommandStatistics(const CommandStatistics& other) {
CommandStatistics(const CommandStatistics& other)
:cmd_count_(other.cmd_count_.load()), cmd_time_consuming_(other.cmd_time_consuming_.load()) {
cmd_time_consuming_.store(other.cmd_time_consuming_.load());
cmd_count_.store(other.cmd_count_.load());
}
Expand Down
15 changes: 0 additions & 15 deletions src/cmd_admin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -162,21 +162,6 @@ const std::string InfoCmd::kDataSection = "data";
const std::string InfoCmd::kCommandStatsSection = "commandstats";
const std::string InfoCmd::kRaftSection = "raft";

const std::string InfoCmd::kInfoSection = "info";
const std::string InfoCmd::kAllSection = "all";
const std::string InfoCmd::kServerSection = "server";
const std::string InfoCmd::kClientsSection = "clients";
const std::string InfoCmd::kStatsSection = "stats";
const std::string InfoCmd::kCPUSection = "cpu";
const std::string InfoCmd::kReplicationSection = "replication";
const std::string InfoCmd::kKeyspaceSection = "keyspace";
const std::string InfoCmd::kDataSection = "data";
const std::string InfoCmd::kRocksDBSection = "rocksdb";
const std::string InfoCmd::kDebugSection = "debug";
const std::string InfoCmd::kCommandStatsSection = "commandstats";
const std::string InfoCmd::kCacheSection = "cache";
const std::string InfoCmd::kRaftSection = "RAFT";

InfoCmd::InfoCmd(const std::string& name, int16_t arity) : BaseCmd(name, arity, kCmdFlagsAdmin, kAclCategoryAdmin) {}

bool InfoCmd::DoInitial(PClient* client) {
Expand Down

0 comments on commit b2e6cdf

Please sign in to comment.