]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: read incremental metalog from master cluster based on truncate variable
authorgengjichao <gengjichao@jd.com>
Mon, 20 Jul 2020 02:33:00 +0000 (10:33 +0800)
committerCasey Bodley <cbodley@redhat.com>
Mon, 15 May 2023 18:52:05 +0000 (14:52 -0400)
commit60ef5d8d4f09caea9fbe4547fa22e453ec6283d2
treef70bec8d03465d77a9014aff021d9b7fbee5be53
parent933fa52e7c747ea6f2ec4ff213e68dbbe97305cc
rgw: read incremental metalog from master cluster based on truncate variable
when the log entry in the meta.log object of the secondary cluster is empty,
the value of max_marker is also empty,which can't meet the requirement that
mdlog_marker <= max_marker,resulting in that the secondary cluster can't fetch
new log entry from the master cluster and infinite loop,finally, the secondary
cluster's metadata can't catch up the master cluster. when the truncate is false,
it means that the secondary cluster's meta.log is empyt,we can read more from
master cluster.

Fixes: https://tracker.ceph.com/issues/46563
Signed-off-by: gengjichao <gengjichao@jd.com>
(cherry picked from commit 2ed1c3e28a326e1422b0b6af47dd0af300ae85a2)
(cherry picked from commit 3b61154d39d6c4a1f29c6464e588589155982fcd)
src/rgw/rgw_sync.cc