From 10243a457aac2b13e6dd8726ba755bd77eba5d6b Mon Sep 17 00:00:00 2001 From: Mixficsol <838844609@qq.com> Date: Mon, 19 Aug 2024 17:56:08 +0800 Subject: [PATCH] code format --- src/client.cc | 1 - src/client.h | 1 - src/cmd_kv.cc | 1 - tests/assets/default.conf | 2 +- tests/test_helper.tcl | 2 +- 5 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/client.cc b/src/client.cc index 32be018..6be1231 100644 --- a/src/client.cc +++ b/src/client.cc @@ -555,7 +555,6 @@ bool PClient::Exec() { } if (IsFlagOn(kClientFlagDirty)) { - message_.clear(); message_ = "$-1\r\n"; return true; } diff --git a/src/client.h b/src/client.h index bbb0fa7..f962d47 100644 --- a/src/client.h +++ b/src/client.h @@ -294,7 +294,6 @@ class PClient : public std::enable_shared_from_this, public CmdRes { time_t last_auth_ = 0; ClientState state_; - UnboundedBuffer reply_; uint64_t net_id_ = 0; int8_t net_thread_index_ = 0; net::SocketAddr addr_; diff --git a/src/cmd_kv.cc b/src/cmd_kv.cc index 1c110ff..726bbb1 100644 --- a/src/cmd_kv.cc +++ b/src/cmd_kv.cc @@ -99,7 +99,6 @@ void SetCmd::DoCmd(PClient* client) { break; } - std::cout << "B" << std::endl; if (s.ok() || s.IsNotFound()) { if (res == 1) { client->SetRes(CmdRes::kOK); diff --git a/tests/assets/default.conf b/tests/assets/default.conf index 0c0a367..38d7371 100644 --- a/tests/assets/default.conf +++ b/tests/assets/default.conf @@ -35,7 +35,7 @@ logfile stdout # Set the number of databases. The default database is DB 0, you can select # a different one on a per-connection basis using SELECT where # dbid is a number between 0 and 'databases'-1 -databases 6 +databases 16 ################################ SNAPSHOTTING ################################# # diff --git a/tests/test_helper.tcl b/tests/test_helper.tcl index 938edae..3567ca1 100644 --- a/tests/test_helper.tcl +++ b/tests/test_helper.tcl @@ -15,7 +15,7 @@ set ::all_tests { # unit/printver unit/basic # unit/scan - # unit/multi + unit/multi unit/quit # unit/type/list # unit/pubsub