mirror of
https://github.com/ceph/ceph
synced 2025-01-03 01:22:53 +00:00
librbd: corrected resize RPC message backwards compatibility
Commit d1f2c557
incorrectly changed the order of variables within
the payload. This resulted in breaking the resize RPC message
with older versions of Ceph.
Fixes: http://tracker.ceph.com/issues/19636
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
parent
93db36f462
commit
9db305a99f
@ -165,14 +165,14 @@ void AsyncCompletePayload::dump(Formatter *f) const {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ResizePayload::encode(bufferlist &bl) const {
|
void ResizePayload::encode(bufferlist &bl) const {
|
||||||
AsyncRequestPayloadBase::encode(bl);
|
|
||||||
::encode(size, bl);
|
::encode(size, bl);
|
||||||
|
AsyncRequestPayloadBase::encode(bl);
|
||||||
::encode(allow_shrink, bl);
|
::encode(allow_shrink, bl);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ResizePayload::decode(__u8 version, bufferlist::iterator &iter) {
|
void ResizePayload::decode(__u8 version, bufferlist::iterator &iter) {
|
||||||
AsyncRequestPayloadBase::decode(version, iter);
|
|
||||||
::decode(size, iter);
|
::decode(size, iter);
|
||||||
|
AsyncRequestPayloadBase::decode(version, iter);
|
||||||
|
|
||||||
if (version >= 4) {
|
if (version >= 4) {
|
||||||
::decode(allow_shrink, iter);
|
::decode(allow_shrink, iter);
|
||||||
|
Loading…
Reference in New Issue
Block a user