Skip to content

Commit

Permalink
Update migrator_thread.cc (#2758)
Browse files Browse the repository at this point in the history
no need c_str()
  • Loading branch information
guangkun123 authored and brother-jin committed Jul 31, 2024
1 parent 9681f25 commit 438e1b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/pika-port/pika_port_3/migrator_thread.cc
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ void MigratorThread::MigrateStringsDB() {
std::string cmd;

argv.push_back("SET");
argv.push_back(iter->key().ToString().c_str());
argv.push_back(parsed_strings_value.value().ToString().c_str());
argv.push_back(iter->key().ToString());
argv.push_back(parsed_strings_value.value().ToString());
if (ts != 0 && ttl > 0) {
argv.push_back("EX");
argv.push_back(std::to_string(ttl));
Expand Down

0 comments on commit 438e1b3

Please sign in to comment.