Gitlab Community Edition Instance
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cdstar
cdstar
Commits
2dacdd52
Commit
2dacdd52
authored
Dec 03, 2019
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
cdstar-backend-nio/src/main/java/de/gwdg/cdstar/pool/nio/NioPool.java
View file @
2dacdd52
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment