mirror of
https://github.com/ceph/ceph
synced 2025-04-04 23:42:13 +00:00
MPoolOp: rearrange parsing, for easier kernel implementation
This commit is contained in:
parent
14dd8a9a8a
commit
cea221c64a
@ -55,20 +55,20 @@ public:
|
|||||||
paxos_encode();
|
paxos_encode();
|
||||||
::encode(fsid, payload);
|
::encode(fsid, payload);
|
||||||
::encode(pool, payload);
|
::encode(pool, payload);
|
||||||
::encode(name, payload);
|
|
||||||
::encode(op, payload);
|
::encode(op, payload);
|
||||||
::encode(auid, payload);
|
::encode(auid, payload);
|
||||||
::encode(snapid, payload);
|
::encode(snapid, payload);
|
||||||
|
::encode(name, payload);
|
||||||
}
|
}
|
||||||
void decode_payload() {
|
void decode_payload() {
|
||||||
bufferlist::iterator p = payload.begin();
|
bufferlist::iterator p = payload.begin();
|
||||||
paxos_decode(p);
|
paxos_decode(p);
|
||||||
::decode(fsid, p);
|
::decode(fsid, p);
|
||||||
::decode(pool, p);
|
::decode(pool, p);
|
||||||
::decode(name, p);
|
|
||||||
::decode(op, p);
|
::decode(op, p);
|
||||||
::decode(auid, p);
|
::decode(auid, p);
|
||||||
::decode(snapid, p);
|
::decode(snapid, p);
|
||||||
|
::decode(name, p);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user