Skip to content

Commit

Permalink
Set checkpointDir to logDir (or current directory if logDir is null) …
Browse files Browse the repository at this point in the history
…if checkpointDir is not directly provided.
  • Loading branch information
badrishc committed May 14, 2024
1 parent f7091da commit ac47b76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/host/Configuration/Options.cs
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ public GarnetServerOptions GetServerOptions(ILogger logger = null)
var logDir = LogDir;
if (!useAzureStorage && enableStorageTier) logDir = new DirectoryInfo(string.IsNullOrEmpty(logDir) ? "." : logDir).FullName;
var checkpointDir = CheckpointDir;
if (!useAzureStorage) checkpointDir = new DirectoryInfo(string.IsNullOrEmpty(checkpointDir) ? "." : checkpointDir).FullName;
if (!useAzureStorage) checkpointDir = new DirectoryInfo(string.IsNullOrEmpty(checkpointDir) ? (string.IsNullOrEmpty(logDir) ? "." : logDir) : checkpointDir).FullName;

var address = !string.IsNullOrEmpty(this.Address) && this.Address.Equals("localhost", StringComparison.CurrentCultureIgnoreCase)
? IPAddress.Loopback.ToString()
Expand Down

0 comments on commit ac47b76

Please sign in to comment.