diff --git a/trace_replay/trace_replay.cc b/trace_replay/trace_replay.cc index bf00f0468..785e1fa56 100644 --- a/trace_replay/trace_replay.cc +++ b/trace_replay/trace_replay.cc @@ -427,6 +427,7 @@ Status Replayer::Replay() { ops++; } else if (trace.type == kTraceGet) { GetPayload get_payload; + get_payload.cf_id = 0; get_payload.get_key = 0; if (trace_file_version_ < 2) { DecodeCFAndKey(trace.payload, &get_payload.cf_id, &get_payload.get_key); diff --git a/trace_replay/trace_replay.h b/trace_replay/trace_replay.h index a42ec8fbb..3ae3e8e5b 100644 --- a/trace_replay/trace_replay.h +++ b/trace_replay/trace_replay.h @@ -105,12 +105,12 @@ struct WritePayload { }; struct GetPayload { - uint32_t cf_id; + uint32_t cf_id = 0; Slice get_key; }; struct IterPayload { - uint32_t cf_id; + uint32_t cf_id = 0; Slice iter_key; Slice lower_bound; Slice upper_bound;