// broader study
- void encode(bufferlist& bl, uint64_t features = 0) const {
+ void encode(bufferlist& bl, uint64_t features) const {
::encode(type, bl);
::encode(nonce, bl);
sockaddr_storage ss = get_sockaddr_storage();
static void generate_test_instances(list<entity_addr_t*>& o);
};
-WRITE_CLASS_ENCODER_OPTIONAL_FEATURES(entity_addr_t)
+WRITE_CLASS_ENCODER_FEATURES(entity_addr_t)
inline ostream& operator<<(ostream& out, const entity_addr_t &addr)
{
return i;
}
- void encode(bufferlist& bl, uint64_t features = 0) const {
+ void encode(bufferlist& bl, uint64_t features) const {
::encode(name, bl);
::encode(addr, bl, features);
}
void dump(Formatter *f) const;
static void generate_test_instances(list<entity_inst_t*>& o);
};
-WRITE_CLASS_ENCODER_OPTIONAL_FEATURES(entity_inst_t)
+WRITE_CLASS_ENCODER_FEATURES(entity_inst_t)
inline bool operator==(const entity_inst_t& a, const entity_inst_t& b) {
}
uint64_t cls_get_features(cls_method_context_t hctx) {
- return CEPH_FEATURES_DEFAULT_SUPPORTED;
+ return CEPH_FEATURES_SUPPORTED_DEFAULT;
}
int cls_log(int level, const char *format, ...) {