]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: fix map advance limit to handle map gaps 1878/head
authorSage Weil <sage@inktank.com>
Sun, 25 May 2014 15:38:38 +0000 (08:38 -0700)
committerSage Weil <sage@inktank.com>
Sun, 25 May 2014 15:38:38 +0000 (08:38 -0700)
commit1e0a82fd55dede473c0af32924f4bcb5bb697a2b
tree197f469bd6a3af3e54cfd10e0a68561afb5f8c4d
parent2f023b5d8aef86e9312b4ee8493f25319b8cc769
osd: fix map advance limit to handle map gaps

The recent change in cf25bdf6b0090379903981fe8cee5ea75efd7ba0 would stop
advancing after some number of epochs, but did not take into consideration
the possibilty that there are missing maps.  In that case, it is impossible
to advance past the gap.

Fix this by increasing the max epoch as we go so that we can always get
beyond the gap.

Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/OSD.cc