]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/PGMap: fix pgmap stat adjustment during map_pg_creates() 4914/head
authorSage Weil <sage@redhat.com>
Thu, 11 Jun 2015 00:41:27 +0000 (17:41 -0700)
committerSage Weil <sage@redhat.com>
Thu, 11 Jun 2015 00:41:57 +0000 (17:41 -0700)
commitb4ad2601283b0a7170c853939b80cadfad205a79
treebb8ba9c865d12c5ee1af061a74957a9eceb757e1
parent98e77d592fd0d7fa6351b79a7813a23fa50494e1
mon/PGMap: fix pgmap stat adjustment during map_pg_creates()

PGMonitor::map_pg_creates() is the only caller that passes sumonly=true,
which is necessary to avoid modifying creating_pgs while it is iterating
over it. However, everything else we *do* want to update--especially the
osd counts.

Rename the arg and skip only the creating bit.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/PGMap.cc
src/mon/PGMap.h