Skip to content

Commit

Permalink
bugfix in UpdateQueryNumAndExecCountTable() command case insensitive (O…
Browse files Browse the repository at this point in the history
  • Loading branch information
Axlgrep authored Sep 10, 2018
1 parent 81d3b9e commit f6de6a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/pika_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1688,9 +1688,10 @@ void PikaServer::RWUnlock() {
}

void PikaServer::UpdateQueryNumAndExecCountTable(const std::string& command) {
std::string cmd(command);
statistic_data_.statistic_lock.WriteLock();
statistic_data_.thread_querynum++;
statistic_data_.exec_count_table[command]++;
statistic_data_.exec_count_table[slash::StringToUpper(cmd)]++;
statistic_data_.statistic_lock.WriteUnlock();
}

Expand Down
2 changes: 1 addition & 1 deletion third/slash

0 comments on commit f6de6a3

Please sign in to comment.