File tree 2 files changed +2
-6
lines changed
ouroboros-consensus/src/ouroboros-consensus/Ouroboros/Consensus/Storage/LedgerDB
2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -567,13 +567,13 @@ initialize replayTracer
567
567
-- If the snapshot is missing a metadata file, issue a warning and try
568
568
-- the next oldest snapshot
569
569
Left err@ (InitFailureRead (ReadMetadataError _ MetadataFileDoesNotExist )) -> do
570
- traceWith snapTracer $ SnapshotMetadataMissing s
570
+ traceWith snapTracer $ InvalidSnapshot s err
571
571
tryNewestFirst (acc . InitFailure s err) ss
572
572
573
573
-- If the snapshot's backend is incorrect, issue a warning and try
574
574
-- the next oldest snapshot
575
575
Left err@ (InitFailureRead (ReadMetadataError _ MetadataBackendMismatch )) -> do
576
- traceWith snapTracer $ SnapshotMetadataBackendMismatch s
576
+ traceWith snapTracer $ InvalidSnapshot s err
577
577
tryNewestFirst (acc . InitFailure s err) ss
578
578
579
579
-- If the snapshot has a checksum that doesn't match the actual data,
Original file line number Diff line number Diff line change @@ -558,8 +558,4 @@ data TraceSnapshotEvent blk
558
558
-- ^ A snapshot was written to disk.
559
559
| DeletedSnapshot DiskSnapshot
560
560
-- ^ An old or invalid on-disk snapshot was deleted
561
- | SnapshotMetadataMissing DiskSnapshot
562
- -- ^ The metadata file for a snapshot was missing and the snapshot was ignored
563
- | SnapshotMetadataBackendMismatch DiskSnapshot
564
- -- ^ The backend for a snapshot was incorrect and the snapshot was ignored
565
561
deriving (Generic , Eq , Show )
You can’t perform that action at this time.
0 commit comments