]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-objectstore-tool: fix split check on import 25795/head
authorSage Weil <sage@redhat.com>
Fri, 4 Jan 2019 21:25:01 +0000 (15:25 -0600)
committerSage Weil <sage@redhat.com>
Fri, 4 Jan 2019 21:25:01 +0000 (15:25 -0600)
commitc04f0672df5403494fd76b46491280d02375ffd9
tree603e5f002132740ff53a315beb848f5720d34f56
parent645e465f6e479b00ce6cb202a0a64eef90c665cd
ceph-objectstore-tool: fix split check on import

Consider pg 1.3:
- in epoch A it splits to 1.b
- in epoch B 1.b splits to 1.1b

We export 1.3 before A, and import into another OSD that already has 1.b.
The existing check looks for whether 1.3 splits into 1.1b from B-1 to B,
but it should really look look at whether 1.3 splits into 1.1b over the
*entire* range (the export epoch, which is something < A).

Fixes: http://tracker.ceph.com/issues/37671
Signed-off-by: Sage Weil <sage@redhat.com>
src/tools/ceph_objectstore_tool.cc