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
(cherry picked from commit 3fedeb3)
  • Loading branch information
nvartolomei authored and vbotbuildovich committed Jun 12, 2024
1 parent 753c5f2 commit 8b2194d
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 8b2194d

Please sign in to comment.