]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
OSDMap: bump snap_epoch when adding a tier 1591/head
authorSage Weil <sage@inktank.com>
Wed, 2 Apr 2014 23:03:37 +0000 (16:03 -0700)
committerSage Weil <sage@inktank.com>
Wed, 2 Apr 2014 23:03:37 +0000 (16:03 -0700)
commit6bf46e23e09c38717a83e6eba202f15e56090748
treecf27bc901c99cc92c8e75861560d36f3312c1db6
parent27e353ccc1a2a9a5c6e376b0ad34786c1b35539b
OSDMap: bump snap_epoch when adding a tier

When we make an existing pool a tier, we start copying the snap metadata
from the base tier.  That includes removed_snaps.  In order for the OSD
to recognize that this value is changing for the first time, we need to
set snap_epoch, or else the OSD doesn't update it's in-memory PGPool
with removed snaps and we eventually hit an assertion failure because
PGPool::cached_remove_snaps is incorrect (e.g., empty).

Fix this by bumping snap_epoch when we add the new tier.

Fixes: #7915
Signed-off-by: Sage Weil <sage@inktank.com>
src/mon/OSDMonitor.cc