]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librados: remove extra advance from objects_begin(position)
authorJosh Durgin <josh.durgin@inktank.com>
Fri, 21 Feb 2014 01:30:54 +0000 (17:30 -0800)
committerJosh Durgin <josh.durgin@inktank.com>
Sat, 22 Feb 2014 00:06:28 +0000 (16:06 -0800)
commitd8a7befbc13adbf6eb9620ff99b8f35c974d0589
treeb1352571fd8e13b6f1b64e582167253443e9a1f7
parent78b65ace4ddd2dfbd1ef27ba520c4a218872b818
librados: remove extra advance from objects_begin(position)

ObjectIterator::seek() already calls get_next() to update the
iterator's state. Calling it again goes one past where it should be.

When the iterator reached the end of the list, it deleted the ListCtx,
causing a segfault on further accesses.

Fixes: #7491
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/librados/librados.cc