]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: decode old PGMap Incrementals differently from new ones
authorGreg Farnum <gregory.farnum@dreamhost.com>
Tue, 24 Apr 2012 22:13:02 +0000 (15:13 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Tue, 24 Apr 2012 23:44:23 +0000 (16:44 -0700)
commit4bfcbe6ab890bf0112cd60ed451002dfb7516c1e
tree582f3aa11be22935fe7789ad7e2a832588c76d5b
parent34ef3f37655a42c376cd1e9e490e4cccf2f44855
mon: decode old PGMap Incrementals differently from new ones

We need to distinguish between the old 0 (meaning undefined) and
the new 0 (meaning switch to 0 and disable the flags). So rev the
encoding version on PGMap::Incremental, and if you decode an old
version with [near]full_ratio == 0, set the ratio to -1 instead. Then
when applying the Incremental interpret -1 as no change.

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
Reviewed-by: Sage Weil <sage@newdream.net>
src/mon/PGMap.cc