pub fn newest_metadata_checkpoint(log_dir: &Path) -> Option<MetadataCheckpoint>Expand description
The newest metadata checkpoint under log_dir, the node’s metadata log
directory, looking in the controller’s directory and then in the
observer’s.
A node that runs a controller has both; the controller’s is authoritative and is preferred at an equal id, because the observer records a placeholder epoch in a checkpoint it wrote itself.