[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 <ntsironis@arrikto.com>
This commit is contained in:
Nikos Tsironis 2022-01-04 17:09:43 +02:00
parent cab57534c6
commit 9f30793355

View File

@ -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