Read the batch offsets only from snapshot version 15
This commit is contained in:
parent
eebb38c62b
commit
21cbee1619
@ -147,8 +147,13 @@ SnapshotInfo ReadSnapshotInfo(const std::filesystem::path &path) {
|
|||||||
info.offset_mapper = read_offset();
|
info.offset_mapper = read_offset();
|
||||||
info.offset_epoch_history = read_offset();
|
info.offset_epoch_history = read_offset();
|
||||||
info.offset_metadata = read_offset();
|
info.offset_metadata = read_offset();
|
||||||
info.offset_edge_batches = read_offset();
|
if (*version >= 15U) {
|
||||||
info.offset_vertex_batches = read_offset();
|
info.offset_edge_batches = read_offset();
|
||||||
|
info.offset_vertex_batches = read_offset();
|
||||||
|
} else {
|
||||||
|
info.offset_edge_batches = 0U;
|
||||||
|
info.offset_vertex_batches = 0U;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Read metadata.
|
// Read metadata.
|
||||||
|
Loading…
Reference in New Issue
Block a user