Skip to content

Commit

Permalink
cloud_storage: recursive_directory_walker eliminate a sstring copy
Browse files Browse the repository at this point in the history
  • Loading branch information
nvartolomei committed Jun 6, 2024
1 parent 8ad8459 commit 3fedeb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v/cloud_storage/recursive_directory_walker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ struct walk_accumulator {
bool empty() const { return dirlist.empty(); }

ss::sstring pop() {
auto r = dirlist.back();
auto r = std::move(dirlist.back());
dirlist.pop_back();
return r;
}
Expand Down

0 comments on commit 3fedeb3

Please sign in to comment.