From fccf75eee3750a3654d2a2b1e3aa379edcfd8c8d Mon Sep 17 00:00:00 2001 From: Yuval Lifshitz Date: Sun, 4 Apr 2021 17:19:03 +0300 Subject: [PATCH] rgw/multisite: handle case when empty marker is provided marker is potional, however, it may also be provided empty Fixes: https://tracker.ceph.com/issues/50135 Signed-off-by: Yuval Lifshitz --- src/rgw/rgw_log_backing.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_log_backing.h b/src/rgw/rgw_log_backing.h index d5996049e58..6f755efb463 100644 --- a/src/rgw/rgw_log_backing.h +++ b/src/rgw/rgw_log_backing.h @@ -251,7 +251,7 @@ cursorgen(std::string_view cursor_) { inline std::pair cursorgeno(std::optional cursor) { - if (cursor) { + if (cursor && !cursor->empty()) { return cursorgen(*cursor); } else { return { 0, ""s }; -- 2.39.5