Skip to content

Commit

Permalink
fix breaking tests
Browse files Browse the repository at this point in the history
  • Loading branch information
badrishc committed Feb 15, 2022
1 parent 0b204c6 commit 0b48e00
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions cs/src/core/FasterLog/FasterLog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1826,8 +1826,15 @@ private void RestoreLatest(out Dictionary<string, long> iterators, out byte[] co

if (headAddress == 0)
headAddress = Constants.kFirstValidAddress;

allocator.RestoreHybridLog(info.BeginAddress, headAddress, info.UntilAddress, info.UntilAddress);

try
{
allocator.RestoreHybridLog(info.BeginAddress, headAddress, info.UntilAddress, info.UntilAddress);
}
catch
{
if (!tolerateDeviceFailure) throw;
}
}

iterators = CompleteRestoreFromCommit(info);
Expand Down Expand Up @@ -1890,7 +1897,14 @@ private void RestoreSpecificCommit(long requestedCommitNum, out Dictionary<strin

if (headAddress == 0)
headAddress = Constants.kFirstValidAddress;
allocator.RestoreHybridLog(info.BeginAddress, headAddress, info.UntilAddress, info.UntilAddress);
try
{
allocator.RestoreHybridLog(info.BeginAddress, headAddress, info.UntilAddress, info.UntilAddress);
}
catch
{
if (!tolerateDeviceFailure) throw;
}
}

iterators = CompleteRestoreFromCommit(info);
Expand Down

0 comments on commit 0b48e00

Please sign in to comment.