Skip to content

Commit

Permalink
Fixed the slow log timestamp format is inconsistent with Redis (OpenA…
Browse files Browse the repository at this point in the history
  • Loading branch information
chenbt-hz committed Dec 14, 2023
1 parent ff9adf6 commit f92c109
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pika_client_conn.cc
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ std::shared_ptr<Cmd> PikaClientConn::DoCmd(const PikaCmdArgsType& argv, const st

void PikaClientConn::ProcessSlowlog(const PikaCmdArgsType& argv, uint64_t do_duration) {
if (time_stat_->total_time() > g_pika_conf->slowlog_slower_than()) {
g_pika_server->SlowlogPushEntry(argv, time_stat_->start_ts(), time_stat_->total_time());
g_pika_server->SlowlogPushEntry(argv, time_stat_->start_ts() / 1000000, time_stat_->total_time());
if (g_pika_conf->slowlog_write_errorlog()) {
bool trim = false;
std::string slow_log;
Expand Down

0 comments on commit f92c109

Please sign in to comment.