]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: nullptr in OmapIteratorImpl::valid 12900/head
authorXinze Chi <xinze@xsky.com>
Thu, 12 Jan 2017 05:58:55 +0000 (13:58 +0800)
committerXinze Chi <xinze@xsky.com>
Thu, 12 Jan 2017 14:20:40 +0000 (22:20 +0800)
commit18f02de07c525c5b8832587f7a8e4da090322ca0
tree558366b137fe29e73374962f23b0f7f786497e36
parent075325c3a4dcef5f26ff00c09195ea40b3e15325
os/bluestore: nullptr in OmapIteratorImpl::valid

call stack:
SnapMapper::get_next_object_to_trim -> MapCacher::get_next ->
OSDriver::get_next-> BlueStore::OmapIteratorImpl::valid()

In OSDriver::get_next, it call iter->upper_bound(key); // this may reset it to nullptr

Signed-off-by: Xinze Chi <xinze@xsky.com>
src/os/bluestore/BlueStore.cc