-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Revert "Disallow duplicate storage paths (#26484)" #29171
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -229,12 +229,3 @@ func LoadSettingsForInstall() { | |
loadServiceFrom(CfgProvider) | ||
loadMailerFrom(CfgProvider) | ||
} | ||
|
||
var uniquePaths = make(map[string]string) | ||
|
||
func fatalDuplicatedPath(name, p string) { | ||
if targetName, ok := uniquePaths[p]; ok && targetName != name { | ||
log.Fatal("storage path %q is being used by %q and %q and all storage paths must be unique to prevent data loss.", p, targetName, name) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wouldn't it suffice to convert the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Then it comes to the same question:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let me throw the ball right back at you: However, what is better?
That's exactly the problem: Everyone who has this problem has to decide how to proceed best themselves. I'm in favor of at least keeping the And in the meantime, we can work on a better fix. |
||
} | ||
uniquePaths[p] = name | ||
} |
Uh oh!
There was an error while loading. Please reload this page.