mirror of
https://github.com/ceph/ceph
synced 2024-12-29 15:03:33 +00:00
Merge PR #26742 into master
* refs/pull/26742/head: osd/PG: do not touch this->cct after PG is destroyed Reviewed-by: Kefu Chai <kchai@redhat.com> Reviewed-by: Neha Ojha <nojha@redhat.com>
This commit is contained in:
commit
9ad8946492
@ -175,10 +175,12 @@ void PG::put(const char* tag)
|
||||
}
|
||||
}
|
||||
#endif
|
||||
auto local_cct = cct;
|
||||
int after = --ref;
|
||||
lgeneric_subdout(cct, refs, 5) << "PG::put " << this << " "
|
||||
<< "tag " << (tag ? tag : "(none") << " "
|
||||
<< (after + 1) << " -> " << after << dendl;
|
||||
lgeneric_subdout(local_cct, refs, 5) << "PG::put " << this << " "
|
||||
<< "tag " << (tag ? tag : "(none") << " "
|
||||
<< (after + 1) << " -> " << after
|
||||
<< dendl;
|
||||
if (after == 0)
|
||||
delete this;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user