osd/PG: is_deleting()

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2017-09-13 17:43:39 -04:00
parent 7ebf2a76bf
commit 2bfaa8b1aa
2 changed files with 5 additions and 1 deletions

View File

@ -9343,7 +9343,7 @@ struct C_CompleteSplits : public Context {
(*i)->lock();
PG *pg = i->get();
osd->add_newly_split_pg(pg, &rctx);
if (!((*i)->deleting)) {
if (!((*i)->is_deleting())) {
set<spg_t> to_complete;
to_complete.insert((*i)->get_pgid());
osd->service.complete_split(to_complete);

View File

@ -245,6 +245,10 @@ struct PGPool {
*/
class PG : public DoutPrefixProvider {
public:
bool is_deleting() const {
return deleting;
}
protected:
OSDService *osd;
CephContext *cct;