Skip to content

Commit

Permalink
ReplicatedPG::on_change: clean up callbacks_for_degraded_object
Browse files Browse the repository at this point in the history
Backport: dumpling, firefly, giant
Fixes: 8753
Signed-off-by: Samuel Just <sjust@redhat.com>
  • Loading branch information
athanatos committed Feb 11, 2015
1 parent d757f8e commit a5ecaa1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/osd/ReplicatedPG.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10450,6 +10450,13 @@ void ReplicatedPG::on_change(ObjectStore::Transaction *t)
else
p->second.clear();
}
for (map<hobject_t, list<Context*> >::iterator i =
callbacks_for_degraded_object.begin();
i != callbacks_for_degraded_object.end();
) {
finish_degraded_object((i++)->first);
}
assert(callbacks_for_degraded_object.empty());

if (is_primary()) {
requeue_ops(waiting_for_cache_not_full);
Expand Down

0 comments on commit a5ecaa1

Please sign in to comment.