Skip to content

Commit

Permalink
optimize: remove unsed param (OpenAtomFoundation#83)
Browse files Browse the repository at this point in the history
remove unsed param
  • Loading branch information
luky116 authored Jun 14, 2023
1 parent 77c56ef commit 968b510
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/pika_slot_command.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class PikaMigrate {
PikaMigrate();
virtual ~PikaMigrate();

int MigrateKey(const std::string &host, const int port, int db, int timeout, const std::string &key, const char type,
int MigrateKey(const std::string &host, const int port, int timeout, const std::string &key, const char type,
std::string &detail, std::shared_ptr<Slot> slot);
void CleanMigrateClient();

Expand Down
4 changes: 2 additions & 2 deletions src/pika_slot_command.cc
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ void PikaMigrate::KillAllMigrateClient() {
* -1 - error happens
* >=0 - # of success migration (0 or 1)
* */
int PikaMigrate::MigrateKey(const std::string &host, const int port, int db, int timeout, const std::string &key,
int PikaMigrate::MigrateKey(const std::string &host, const int port, int timeout, const std::string &key,
const char type, std::string &detail, std::shared_ptr<Slot> slot) {
int send_command_num = -1;

Expand Down Expand Up @@ -634,7 +634,7 @@ static int SlotsMgrtOne(const std::string &host, const int port, int timeout, co
rocksdb::Status s;
std::map<storage::DataType, rocksdb::Status> type_status;

send_command_num = g_pika_server->pika_migrate_->MigrateKey(host, port, 0, timeout, key, type, detail, slot);
send_command_num = g_pika_server->pika_migrate_->MigrateKey(host, port, timeout, key, type, detail, slot);

// the key is migrated to target, delete key and slotsinfo
if (send_command_num >= 1) {
Expand Down

0 comments on commit 968b510

Please sign in to comment.