We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7280a24 commit 4c62ae3Copy full SHA for 4c62ae3
src/osd/SnapMapper.cc
@@ -147,7 +147,7 @@ int OSDriver::get_next_or_current(
147
ch, hoid, FuturizedStore::Shard::omap_keys_t{key}
148
).safe_then([&key, next_or_current] (FuturizedStore::Shard::omap_values_t&& vals) {
149
assert(vals.size() == 1);
150
- *next_or_current = std::make_pair(key, std::move(vals[0]));
+ *next_or_current = std::make_pair(key, std::move(vals.begin()->second));
151
return 0;
152
}, FuturizedStore::Shard::read_errorator::all_same_way(
153
[next_or_current, &key, this] {
0 commit comments