]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/PGMap and PGMonitor: update last_epoch_clean cache from new osd keys 3186/head
authorSage Weil <sage@redhat.com>
Sun, 2 Nov 2014 16:50:59 +0000 (08:50 -0800)
committerJoao Eduardo Luis <joao@redhat.com>
Mon, 15 Dec 2014 16:18:56 +0000 (16:18 +0000)
commitd28c8e0fb924fbf36e4e15e19554ad30da3ff8f2
tree2300da5aab9fb7b8750f68ceffd75f84fe94a7bc
parent7646f239476609c96b6baf94dfd5f727fff49502
mon/PGMap and PGMonitor: update last_epoch_clean cache from new osd keys

We were only invalidating the cached value from apply_incremental, which
is no longer called on modern clusters.

Fix this by storing the update epoch in the key as well (it is not part
of osd_stat_t).

Backport: giant, firefly, dumpling(?)
Fixes: #9987
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 093c5f0cabeb552b90d944da2c50de48fcf6f564)
src/mon/PGMap.cc
src/mon/PGMonitor.cc