You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code will loop endlessly, if there is already a mount for the mountPoint, as it only changes the value for the given key, but not the key itself so it will always return non-null when the mountPoint is already contained in the map.
String suffix;
do {
suffix = Long.toString(defaultFilesystemRandom.nextLong());
}
while (filesystemNames.put(mountPoint, fuseName + suffix) != null);
The text was updated successfully, but these errors were encountered:
The following code will loop endlessly, if there is already a mount for the mountPoint, as it only changes the value for the given key, but not the key itself so it will always return non-null when the mountPoint is already contained in the map.
The text was updated successfully, but these errors were encountered: