Gitlab Community Edition Instance

Commit 2dacdd52 authored by mhellka's avatar mhellka
Browse files

Fix: Unable to resolve relative symlinks for pool statistics

parent abf5dccb
Pipeline #115830 passed with stages
in 10 minutes and 9 seconds
......@@ -366,10 +366,7 @@ public class NioPool implements StoragePool {
cacheStats = indexCache.stats();
cacheSize = indexCache.estimatedSize();
try {
Path target = basePath;
while (Files.isSymbolicLink(target))
target = Files.readSymbolicLink(target);
final FileStore fileStore = Files.getFileStore(target);
final FileStore fileStore = Files.getFileStore(basePath.toRealPath());
fsFree = fileStore.getUsableSpace();
fsTotal = fileStore.getTotalSpace();
} catch (final IOException e) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment