marker is potional, however, it may also be provided empty
Fixes: https://tracker.ceph.com/issues/50135
Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
(cherry picked from commit
fccf75eee3750a3654d2a2b1e3aa379edcfd8c8d)
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
inline std::pair<uint64_t, std::string_view>
cursorgeno(std::optional<std::string_view> cursor) {
- if (cursor) {
+ if (cursor && !cursor->empty()) {
return cursorgen(*cursor);
} else {
return { 0, ""s };