Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use absolute path as mutex name when starting up node #1887

Merged
merged 1 commit into from Apr 30, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/EventStore.ClusterNode/Program.cs
Expand Up @@ -84,7 +84,11 @@ public class Program : ProgramBase<ClusterNodeOptions> {
var dbPath = opts.Db;

if (!opts.MemDb) {
_dbLock = new ExclusiveDbLock(dbPath);
var absolutePath = Path.GetFullPath(dbPath);
if(Runtime.IsWindows)
absolutePath = absolutePath.ToLower();

_dbLock = new ExclusiveDbLock(absolutePath);
if (!_dbLock.Acquire())
throw new Exception(string.Format("Couldn't acquire exclusive lock on DB at '{0}'.", dbPath));
}
Expand Down