Skip to content

Commit 4c62ae3

Browse files
committed
osd/SnapManager: fix std::string constructed from 0
Signed-off-by: Zhang Song <[email protected]>
1 parent 7280a24 commit 4c62ae3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/osd/SnapMapper.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ int OSDriver::get_next_or_current(
147147
ch, hoid, FuturizedStore::Shard::omap_keys_t{key}
148148
).safe_then([&key, next_or_current] (FuturizedStore::Shard::omap_values_t&& vals) {
149149
assert(vals.size() == 1);
150-
*next_or_current = std::make_pair(key, std::move(vals[0]));
150+
*next_or_current = std::make_pair(key, std::move(vals.begin()->second));
151151
return 0;
152152
}, FuturizedStore::Shard::read_errorator::all_same_way(
153153
[next_or_current, &key, this] {

0 commit comments

Comments
 (0)