]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/osd_types: add pg_pool_t FLAG_POOL_CREATING
authorSage Weil <sage@redhat.com>
Sat, 7 Apr 2018 02:38:26 +0000 (21:38 -0500)
committerSage Weil <sage@redhat.com>
Fri, 7 Sep 2018 17:08:40 +0000 (12:08 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/osd_types.cc
src/osd/osd_types.h

index d1d21c999be0d72ee8a69018655fdc3a8e9187e3..7864fe906db5fb29a4199035434726f4989b8168 100644 (file)
@@ -1661,7 +1661,7 @@ void pg_pool_t::encode(bufferlist& bl, uint64_t features) const
     encode(flags, bl);
   } else {
     auto tmp = flags;
-    tmp &= ~(FLAG_SELFMANAGED_SNAPS | FLAG_POOL_SNAPS);
+    tmp &= ~(FLAG_SELFMANAGED_SNAPS | FLAG_POOL_SNAPS | FLAG_CREATING);
     encode(tmp, bl);
   }
   encode((uint32_t)0, bl); // crash_replay_interval
index 530f4689a69168e46fd744db9479f010c44288ff..99b42bc1e0af7881af188a7e0a090b9f472e8adf 100644 (file)
@@ -1190,6 +1190,7 @@ struct pg_pool_t {
     FLAG_BACKFILLFULL = 1<<12, // pool is backfillfull
     FLAG_SELFMANAGED_SNAPS = 1<<13, // pool uses selfmanaged snaps
     FLAG_POOL_SNAPS = 1<<14,        // pool has pool snaps
+    FLAG_CREATING = 1<<15,          // initial pool PGs are being created
   };
 
   static const char *get_flag_name(int f) {
@@ -1209,6 +1210,7 @@ struct pg_pool_t {
     case FLAG_BACKFILLFULL: return "backfillfull";
     case FLAG_SELFMANAGED_SNAPS: return "selfmanaged_snaps";
     case FLAG_POOL_SNAPS: return "pool_snaps";
+    case FLAG_CREATING: return "creating";
     default: return "???";
     }
   }
@@ -1257,6 +1259,8 @@ struct pg_pool_t {
       return FLAG_SELFMANAGED_SNAPS;
     if (name == "pool_snaps")
       return FLAG_POOL_SNAPS;
+    if (name == "creating")
+      return FLAG_CREATING;
     return 0;
   }