Merge pull request #40585 from yuvalif/wip-yuval-fix-50135

rgw/multisite: handle case when empty marker is provided
This commit is contained in:
Yuval Lifshitz 2021-04-05 18:04:00 +03:00 committed by GitHub
commit d9b3fd3b01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -251,7 +251,7 @@ cursorgen(std::string_view cursor_) {
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 };