mirror of
https://github.com/ceph/ceph
synced 2024-12-28 14:34:13 +00:00
osd/PG: is_deleting()
Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
7ebf2a76bf
commit
2bfaa8b1aa
@ -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);
|
||||
|
@ -245,6 +245,10 @@ struct PGPool {
|
||||
*/
|
||||
|
||||
class PG : public DoutPrefixProvider {
|
||||
public:
|
||||
bool is_deleting() const {
|
||||
return deleting;
|
||||
}
|
||||
protected:
|
||||
OSDService *osd;
|
||||
CephContext *cct;
|
||||
|
Loading…
Reference in New Issue
Block a user