mirror of
https://github.com/ceph/ceph
synced 2025-02-22 02:27:29 +00:00
Merge pull request #22500 from thinkercui/bugfix
osd: fix memory leak in EC fast and error read Reviewed-by: Josh Durgin <jdurgin@redhat.com> Reviewed-by: David Zafman <dzafman@redhat.com>
This commit is contained in:
commit
8b83d44c90
@ -1257,6 +1257,13 @@ void ECBackend::complete_read_op(ReadOp &rop, RecoveryMessages *m)
|
||||
reqiter->second.cb = nullptr;
|
||||
}
|
||||
}
|
||||
// if the read op is over. clean all the data of this tid.
|
||||
for (set<pg_shard_t>::iterator iter = rop.in_progress.begin();
|
||||
iter != rop.in_progress.end();
|
||||
iter++) {
|
||||
shard_to_read_map[*iter].erase(rop.tid);
|
||||
}
|
||||
rop.in_progress.clear();
|
||||
tid_to_read_map.erase(rop.tid);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user