]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/PGMap and PGMonitor: update last_epoch_clean cache from new osd keys 3220/head
authorSage Weil <sage@redhat.com>
Sun, 2 Nov 2014 16:50:59 +0000 (08:50 -0800)
committerJoao Eduardo Luis <joao@redhat.com>
Wed, 17 Dec 2014 17:13:57 +0000 (17:13 +0000)
commitf55b097764beb973c12866f2d7161c6bd870aa07
treed1eff568d20d1b24af722939225ed27bc1e7d5e9
parent1d314e7a9ab7af5b693583cf2faa5db54f6beb69
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