osd/osd_types: fix pg_pool_t encoding for hammer

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 e28e0c617a

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2018-04-07 13:36:32 -05:00
parent 43978fc68d
commit 37c22b2739

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