]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/osd_type: check if pool is gone during check_new_interval() 10859/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 25 Aug 2016 02:53:18 +0000 (10:53 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 29 Aug 2016 05:34:46 +0000 (13:34 +0800)
commitdb1cab82aa3ac258cf4e3ce7b756764fbad0310b
tree15ad16db2f3176f37090a61764933be03cc855fc
parent354774a6cdda825393d8b8041212e876b793e94f
osd/osd_type: check if pool is gone during check_new_interval()

In is_new_interval() we'll return true if the relevant pool
does not exist in the lastmap, which means theoretically
we could access violation here if we always suppose the pool
did exist in the lastmap.

This PR add a check to make sure that the above case
does not happen.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/osd/osd_types.cc
src/test/osd/types.cc