]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: ignore num_objects_dirty for old pools 1119/head
authorSage Weil <sage@inktank.com>
Sun, 19 Jan 2014 05:19:58 +0000 (21:19 -0800)
committerSage Weil <sage@inktank.com>
Sun, 19 Jan 2014 05:19:58 +0000 (21:19 -0800)
commit7314cde144955c390630b81c87338f00a090e16b
treeae411114b0cfd15aa2e06d0f150ad87340e8ada0
parent03d7d97d5df4e0fca24fdff360f1bde6fcefddfc
osd: ignore num_objects_dirty for old pools

Way back in a0ed9c20048750fd4b2c7ce0339fa8b20ef08ca3 we introduced the
dirty flag, but we did not track it in the stats until much later in
c561d5ea22c335e4c05fdc16ca8fb41f75f89d81.  Unfortunately this interval
spans the emperor release.  To avoid making scrub error out and require
repair on *any* of those old pools, flag stats that were encoded before
now such that the dirty stats are ignored.  Clear the flag if we *do*
do a repair so that it will be tracked properly thereafter.

Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/ReplicatedPG.cc
src/osd/osd_types.cc
src/osd/osd_types.h