]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/osd_types: fix pg_pool_t encoding for hammer
authorSage Weil <sage@redhat.com>
Sat, 7 Apr 2018 18:36:32 +0000 (13:36 -0500)
committerSage Weil <sage@redhat.com>
Sat, 7 Apr 2018 18:36:32 +0000 (13:36 -0500)
If we are missing the hammer feature, we will also be missing the
luminous feature, but we should still encode like hammer.

Analogous fix to e28e0c617af8825ae92cced5d87cc4f403709e48

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/osd_types.cc

index ca5ddc0bea3ccd339efe75b97cfb9762c4a62b9e..ff6adb500621f011ac9b0d7856dc89c81db81090 100644 (file)
@@ -1557,8 +1557,7 @@ void pg_pool_t::encode(bufferlist& bl, uint64_t features) const
     // this was the first post-hammer thing we added; if it's missing, encode
     // like hammer.
     v = 21;
-  }
-  if (!HAVE_FEATURE(features, SERVER_LUMINOUS)) {
+  } else if (!HAVE_FEATURE(features, SERVER_LUMINOUS)) {
     v = 24;
   }