Skip to content

Commit

Permalink
Merge pull request #3819 from tchaikov/giant-pg-leak-10421
Browse files Browse the repository at this point in the history
osd: fix PG leak in SnapTrimWQ._clear()
  • Loading branch information
liewegas committed Mar 17, 2015
2 parents 0f57188 + 984df3b commit a2a3dad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/osd/OSD.h
Expand Up @@ -2079,7 +2079,9 @@ class OSD : public Dispatcher,
pg->put("SnapTrimWQ");
}
void _clear() {
osd->snap_trim_queue.clear();
while (PG *pg = _dequeue()) {
pg->put("SnapTrimWQ");
}
}
} snap_trim_wq;

Expand Down

0 comments on commit a2a3dad

Please sign in to comment.