Merge pull request #3747 from ceph/wip-10892

osd: clear obc cache on_shutdown

Reviewed-by: Samuel Just <sjust@redhat.com>
This commit is contained in:
Sage Weil 2015-02-16 17:50:22 -08:00
commit 9264d4eaf7
2 changed files with 2 additions and 1 deletions

View File

@ -10338,6 +10338,7 @@ void ReplicatedPG::on_shutdown()
pgbackend->on_change();
context_registry_on_change();
object_contexts.clear();
osd->remote_reserver.cancel_reservation(info.pgid);
osd->local_reserver.cancel_reservation(info.pgid);

View File

@ -1009,7 +1009,7 @@ protected:
pg(p), obc(o) {}
void finish(int r) {
pg->object_context_destructor_callback(obc);
}
}
};
int find_object_context(const hobject_t& oid,