File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -675,7 +675,7 @@ class PikaConf : public pstd::BaseConf {
675675 TryPushDiffCommands (" max-background-jobs" , std::to_string (value));
676676 max_background_jobs_ = value;
677677 }
678- void SetWriteBufferSize (const int & value) {
678+ void SetWriteBufferSize (int64_t value) {
679679 std::lock_guard l (rwlock_);
680680 TryPushDiffCommands (" write-buffer-size" , std::to_string (value));
681681 write_buffer_size_ = value;
Original file line number Diff line number Diff line change @@ -2692,7 +2692,7 @@ void ConfigCmd::ConfigSet(std::shared_ptr<DB> db) {
26922692 res_.AppendStringRaw (" -ERR Set write-buffer-size wrong: " + s.ToString () + " \r\n " );
26932693 return ;
26942694 }
2695- g_pika_conf->SetWriteBufferSize (static_cast < int >( ival) );
2695+ g_pika_conf->SetWriteBufferSize (ival);
26962696 res_.AppendStringRaw (" +OK\r\n " );
26972697 } else if (set_item == " max-write-buffer-num" ) {
26982698 if (pstd::string2int (value.data (), value.size (), &ival) == 0 ) {
You can’t perform that action at this time.
0 commit comments