mirror of
https://github.com/ceph/ceph
synced 2025-02-22 10:37:15 +00:00
osd: avoid PGPool lookup in inner loop
Each PG already has a PGPool *.
This commit is contained in:
parent
69fda2a9c4
commit
a6c80a3a1e
@ -762,7 +762,7 @@ bool ReplicatedPG::snap_trimmer()
|
||||
// trim clone's snaps
|
||||
vector<snapid_t> newsnaps;
|
||||
for (unsigned i=0; i<snaps.size(); i++)
|
||||
if (!osd->_lookup_pool(info.pgid.pool())->info.is_removed_snap(snaps[i]))
|
||||
if (!pool->info.is_removed_snap(snaps[i]))
|
||||
newsnaps.push_back(snaps[i]);
|
||||
|
||||
if (newsnaps.empty()) {
|
||||
|
Loading…
Reference in New Issue
Block a user