otherwise, the one defined using WRITE_RAW_ENCODER is called instead.
so in this change, rename the the member function which happens to have
the same signature with
decode(type &v, ::ceph::bufferlist::const_iterator& p)
where `type` is `__u8`.
Signed-off-by: Kefu Chai <kchai@redhat.com>
void ActionEntry::decode(bufferlist::const_iterator &it) {
DECODE_START(1, it);
- decode(struct_v, it);
+ decode_versioned(struct_v, it);
DECODE_FINISH(it);
}
void ActionEntry::decode_unversioned(bufferlist::const_iterator &it) {
- decode(0, it);
+ decode_versioned(0, it);
}
-void ActionEntry::decode(__u8 version, bufferlist::const_iterator &it) {
+void ActionEntry::decode_versioned(__u8 version, bufferlist::const_iterator &it) {
using ceph::decode;
uint8_t action_type;
decode(action_type, it);
static void generate_test_instances(std::list<ActionEntry *> &o);
private:
- void decode(__u8 version, bufferlist::const_iterator &it);
+ void decode_versioned(__u8 version, bufferlist::const_iterator &it);
};
WRITE_CLASS_ENCODER(ActionEntry);