From 9f30793355d1d71b4f50a762c1f86fa87289896b Mon Sep 17 00:00:00 2001 From: Nikos Tsironis Date: Tue, 4 Jan 2022 17:09:43 +0200 Subject: [PATCH] [era_invalidate] Don't read the live metadata when the --metadata-snapshot option is provided Until now, 'era_invalidate' read the live metadata (superblock), instead of the metadata snapshot, when using the --metadata-snapshot parameter. Fix this by passing the location of the metadata snapshot to 'open_metadata()', when a metadata snapshot is used. Signed-off-by: Nikos Tsironis --- era/metadata.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/era/metadata.cc b/era/metadata.cc index 0aff97e..d270956 100644 --- a/era/metadata.cc +++ b/era/metadata.cc @@ -44,7 +44,7 @@ metadata::metadata(block_manager::ptr bm, open_type ot) metadata::metadata(block_manager::ptr bm, block_address metadata_snap) { - open_metadata(bm); + open_metadata(bm, metadata_snap); } void