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:
Sage Weil 2019-03-05 09:09:29 -06:00
commit 9ad8946492

View File

@ -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;
}