static const int HEAD_VERSION = 3;
static const int COMPAT_VERSION = 2;
- epoch_t epoch;
+ epoch_t epoch = 0;
public:
vector<spg_t> pg_list;
const char *get_type_name() const override { return "PGrm"; }
void encode_payload(uint64_t features) override {
- if (!HAVE_FEATURE(features, SERVER_LUMINOUS)) {
+ if (HAVE_FEATURE(features, SERVER_LUMINOUS)) {
+ header.version = HEAD_VERSION;
+ } else {
// for jewel+kraken
header.version = 2;
::encode(epoch, payload);