summaryrefslogtreecommitdiffstats
path: root/src/os/bluestore/BlueStore.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/bluestore/BlueStore.cc')
-rw-r--r--src/os/bluestore/BlueStore.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc
index 0f79fc4f095..edc8e7ac264 100644
--- a/src/os/bluestore/BlueStore.cc
+++ b/src/os/bluestore/BlueStore.cc
@@ -13277,7 +13277,11 @@ int BlueStore::omap_get_values(
r = -ENOENT;
goto out;
}
- iter->upper_bound(*start_after);
+ if (start_after) {
+ iter->upper_bound(*start_after);
+ } else {
+ iter->seek_to_first();
+ }
for (; iter->valid(); iter->next()) {
output->insert(make_pair(iter->key(), iter->value()));
}