mirror of
https://github.com/ceph/ceph
synced 2025-02-19 08:57:27 +00:00
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:
parent
43978fc68d
commit
37c22b2739
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user