]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/lazy-omap-stats: overload get_output() to accept both lvalue and rvalue refs 66277/head
authorNitzan Mordechai <nmordech@redhat.com>
Mon, 17 Nov 2025 09:02:57 +0000 (09:02 +0000)
committerNitzan Mordechai <nmordech@redhat.com>
Tue, 18 Nov 2025 13:25:27 +0000 (13:25 +0000)
commit3e107ec67e3be2034b200b81b9f23ccc40353b7a
tree404c42d3ca078aaee4bd8d6e0abbd21eacdcca9d
parentdea5782877e00bc2ef3b66a9a49f62a6007e6d23
test/lazy-omap-stats: overload get_output() to accept both lvalue and rvalue refs

PR #65014 added std::move() inside the while loop, which required
recreating the command string on each iteration.

Add const std::string& overload that forwards to the existing
std::string&& version, allowing the command to be declared outside
the loop for better efficiency.

Fixes: https://tracker.ceph.com/issues/73838
Signed-off-by: Nitzan Mordechai <nmordech@ibm.com>
src/test/lazy-omap-stats/lazy_omap_stats_test.cc
src/test/lazy-omap-stats/lazy_omap_stats_test.h