when data sync queries RGWOp_BILog_Info from an un-upgraded gateway, it
doesn't include the oldest_gen/latest_gen fields. so initialize these
variables to 0 by default
Signed-off-by: Casey Bodley <cbodley@redhat.com>
std::string master_ver;
std::string max_marker;
bool syncstopped{false};
- uint64_t oldest_gen;
- uint64_t latest_gen;
+ uint64_t oldest_gen = 0;
+ uint64_t latest_gen = 0;
void decode_json(JSONObj *obj) {
JSONDecoder::decode_json("bucket_ver", bucket_ver, obj);