Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mgr: skip first non-zero incremental in PGMap::apply_incremental() #18347

Merged
merged 1 commit into from Nov 1, 2017

Commits on Nov 1, 2017

  1. mgr: skip first non-zero incremental in PGMap::apply_incremental()

    After initialization of PGMap instance PGMap::stamp is zero
    and this cause huge first delta.
    Also after mgr restart first non-zero value coming to PGMap::apply_incremental()
    is current pg_sum value so it produces unreasonably huge pg_sum_delta.
    This patch introduces a workaround to save pg_sum and not update pg_sum_delta
    by first non-zero incremental.
    
    Signed-off-by: Aleksei Gutikov <aleksey.gutikov@synesis.ru>
    Fixes: http://tracker.ceph.com/issues/21773
    Aleksei Gutikov committed Nov 1, 2017
    Copy the full SHA
    013a380 View commit details
    Browse the repository at this point in the history