Commit bae10f2
Shilpa Jagannath
rgw/multisite: in order to sleep between mdlog polling events, we check if the mdlog_marker is not modified by comparing
mdlog_marker and max_marker. but max_marker is exposed to changes from RGWReadMDLogEntriesCR, and if there is a race
coming from mdlog trimming which could render max_marker empty, then its comparison with mdlog polling can be incorrect.
To fix this, we now save the previous mdlog marker and compare with the updated mdlog marker.
Signed-off-by: Shilpa Jagannath <[email protected]>1 parent 82ddbb6 commit bae10f2
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1446 | 1446 | | |
1447 | 1447 | | |
1448 | 1448 | | |
| 1449 | + | |
1449 | 1450 | | |
1450 | 1451 | | |
1451 | 1452 | | |
| |||
1797 | 1798 | | |
1798 | 1799 | | |
1799 | 1800 | | |
| 1801 | + | |
1800 | 1802 | | |
1801 | 1803 | | |
1802 | 1804 | | |
| |||
1867 | 1869 | | |
1868 | 1870 | | |
1869 | 1871 | | |
1870 | | - | |
| 1872 | + | |
| 1873 | + | |
1871 | 1874 | | |
1872 | 1875 | | |
1873 | 1876 | | |
| |||
0 commit comments