We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ab7f7e commit 6c76a07Copy full SHA for 6c76a07
src/DotJEM.Json.Index2.Management/IJsonIndexManager.cs
@@ -73,9 +73,15 @@ public JsonIndexManager(
73
74
public async Task RunAsync()
75
{
76
- index.Storage.Delete();
77
bool restoredFromSnapshot = await RestoreSnapshotAsync().ConfigureAwait(false);
78
- infoStream.WriteInfo($"Index restored from a snapshot: {restoredFromSnapshot}.");
+ if (!restoredFromSnapshot)
+ {
79
+ index.Storage.Delete();
80
+ }
81
+ else
82
83
+ infoStream.WriteInfo($"Index was restored from snapshot.");
84
85
86
await Task
87
.WhenAll(
0 commit comments