Signed-off-by: Leonid Chernin <leonidc@il.ibm.com>
DECODE_START(3, bl);
decode(epoch, bl);
+ dout(10) << "decode epoch " << dendl;
decode(created_gws, bl);
+ dout(10) << "decode created gws " << dendl;
decode(fsm_timers, bl);
+ dout(10) << "decode fsm timers " << dendl;
if (struct_v >= 2) {
decode(gw_epoch, bl);
+ dout(10) << "decode gw epoch " << dendl;
}
if (struct_v >=3) {
decode(disaster_locations, bl);
+ dout(10) << "decode disaster location " << dendl;
}
DECODE_FINISH(bl);
}
version = 2;
}
// For legacy encoding, skip deleted subsystems to maintain compatibility
+ /*
if (version == 1 &&
sub.change_descriptor != subsystem_change_t::SUBSYSTEM_ADDED) {
dout(4) << "encode BeaconSubsystem: skipping subsystem " << sub.nqn
<< " with change_descriptor " << (int)sub.change_descriptor
<< " in legacy mode" << dendl;
return; // Skip encoding this subsystem entirely
- }
+ } */
ENCODE_START(version, version, bl);
encode(sub.nqn, bl);