mirror of
https://github.com/ceph/ceph
synced 2025-03-03 15:00:51 +00:00
Merge pull request #266 from ceph/wip-4949
osd: don't assert if get_omap_iterator() returns NULL Reviewed-by: Sam Just <sam.just@inktank.com>
This commit is contained in:
commit
0d8f7a092f
@ -2922,7 +2922,10 @@ int ReplicatedPG::do_osd_ops(OpContext *ctx, vector<OSDOp>& ops)
|
||||
ObjectMap::ObjectMapIterator iter = osd->store->get_omap_iterator(
|
||||
coll, soid
|
||||
);
|
||||
assert(iter);
|
||||
if (!iter) {
|
||||
result = -ENOENT;
|
||||
goto fail;
|
||||
}
|
||||
iter->upper_bound(start_after);
|
||||
if (filter_prefix >= start_after) iter->lower_bound(filter_prefix);
|
||||
for (uint64_t i = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user