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 Jun 26, 2024
1 parent 3d3c6d1 commit 8730946
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 8730946

Please sign in to comment.