Fixes: https://tracker.ceph.com/issues/40587
Signed-off-by: dongdong tao <dongdong.tao@canonical.com>
for (; miter != manifest.obj_end() && max_aio--; ++miter) {
if (!max_aio) {
ret = drain_handles(handles);
- if (ret < 0) {
+ if (ret < 0 && ret != -ENOENT) {
lderr(store->ctx()) << "ERROR: could not drain handles as aio completion returned with " << ret << dendl;
return ret;
}
if (!max_aio) {
ret = drain_handles(handles);
- if (ret < 0) {
+ if (ret < 0 && ret != -ENOENT) {
lderr(store->ctx()) << "ERROR: could not drain handles as aio completion returned with " << ret << dendl;
return ret;
}
}
ret = drain_handles(handles);
- if (ret < 0) {
+ if (ret < 0 && ret != -ENOENT) {
lderr(store->ctx()) << "ERROR: could not drain handles as aio completion returned with " << ret << dendl;
return ret;
}