MPoolOp: rearrange parsing, for easier kernel implementation

This commit is contained in:
Yehuda Sadeh 2010-04-22 15:47:59 -07:00
parent 14dd8a9a8a
commit cea221c64a

View File

@ -55,20 +55,20 @@ public:
paxos_encode();
::encode(fsid, payload);
::encode(pool, payload);
::encode(name, payload);
::encode(op, payload);
::encode(auid, payload);
::encode(snapid, payload);
::encode(name, payload);
}
void decode_payload() {
bufferlist::iterator p = payload.begin();
paxos_decode(p);
::decode(fsid, p);
::decode(pool, p);
::decode(name, p);
::decode(op, p);
::decode(auid, p);
::decode(snapid, p);
::decode(name, p);
}
};