// -- pg_notify_t --
void pg_notify_t::encode(bufferlist &bl) const
{
- ENCODE_START(2, 1, bl);
+ ENCODE_START(2, 2, bl);
::encode(query_epoch, bl);
::encode(epoch_sent, bl);
::encode(info, bl);
::decode(query_epoch, bl);
::decode(epoch_sent, bl);
::decode(info, bl);
- if (struct_v >= 2) {
- ::decode(to, bl);
- ::decode(from, bl);
- } else {
- to = shard_id_t::NO_SHARD;
- from = shard_id_t::NO_SHARD;
- }
+ ::decode(to, bl);
+ ::decode(from, bl);
DECODE_FINISH(bl);
}