mirror of
https://github.com/ceph/ceph
synced 2024-12-20 18:33:44 +00:00
be07a418b5
Method preprocess_remove_snaps() is designed to fast check whether we can safely handle a remove-snaps-request without changing the osdmap. The original design is to be able to handle snaps from multiple pools, including those snaps even from a non-existent pool by simply skipping over them. However, this method will quit on successfully detecting any vaild snap which is truly needed to be removed and forward this request to prepare_remove_snaps() for further processing. From the above analysis, the prepare_remove_snaps() method will theoretically also encounter some snaps which possibly belong to non-existent pools. This pr solves the above problem by adding a sanity check against pool existense associated with the specified snap to be removed, which shall be considered as a defensive move and makes prepare_remove_snaps() stronger. Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn> |
||
---|---|---|
.. | ||
test_daemon.sh | ||
test.sh |