Skip to content

Commit

Permalink
Merge pull request #10660 from dachary/wip-16864-jewel
Browse files Browse the repository at this point in the history
jewel: multisite segfault on ~RGWRealmWatcher if realm was deleted
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
  • Loading branch information
oritwas committed Aug 26, 2016
2 parents fe23c2e + 2485efc commit 6d270f6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/rgw/rgw_realm_watcher.cc
Expand Up @@ -130,9 +130,12 @@ int RGWRealmWatcher::watch_restart()
<< " with " << cpp_strerror(-r) << dendl;
}
r = pool_ctx.watch2(watch_oid, &watch_handle, this);
if (r < 0)
if (r < 0) {
lderr(cct) << "Failed to restart watch on " << watch_oid
<< " with " << cpp_strerror(-r) << dendl;
pool_ctx.close();
watch_oid.clear();
}
return r;
}

Expand Down

0 comments on commit 6d270f6

Please sign in to comment.