]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/ReplicatedPG: skip missing hit_sets when loading into memory 1655/head
authorSage Weil <sage@inktank.com>
Fri, 11 Apr 2014 20:14:58 +0000 (13:14 -0700)
committerSage Weil <sage@inktank.com>
Fri, 11 Apr 2014 20:14:58 +0000 (13:14 -0700)
commit78df66f52084bd5ba354bb41edce98e032e4811b
treea531adbf26fd0afe4cdc4a37546543c5c14db948
parent052519ed4ae1accb79a436b416d9a2b755fe091e
osd/ReplicatedPG: skip missing hit_sets when loading into memory

We weren't handling hit_sets that were missing.

Two changes here:

1- Load the hit_sets oldest to newest.  That means that if we stop partway
   through loading, and then add another to the end of the list, and then
   try again to load some more, we will still catch them all.
2- If the object is missing, stop.  We'll try again the next time
   agent_work() is called.

Fixes: #8077
Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/ReplicatedPG.cc