Notifications can fail if a client crashes or if we race with the
removal of the image. Either case should be ignored.
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit
529d3c9a073b6ab11f469fd54c72de2d3650cf18)
CephContext *cct = m_image_ctx->cct;
ldout(cct, 15) << "r=" << r << dendl;
- if (r < 0 && r != -ENOENT) {
+ if (r == -ENOENT || r == -ETIMEDOUT) {
+ // non-fatel errors
+ lderr(cct) << "failed to notify update: " << cpp_strerror(r) << dendl;
+ } else if (r < 0) {
lderr(cct) << "failed to notify update: " << cpp_strerror(r) << dendl;
finish(r);
return;