diff options
-rw-r--r-- | fastos/src/vespa/fastos/file.h | 2 | ||||
-rw-r--r-- | fastos/src/vespa/fastos/linux_file.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/fastos/src/vespa/fastos/file.h b/fastos/src/vespa/fastos/file.h index 13d2ec0a97c..ebe835172fe 100644 --- a/fastos/src/vespa/fastos/file.h +++ b/fastos/src/vespa/fastos/file.h @@ -205,7 +205,7 @@ public: * Return path separator string. This will yield "/" on UNIX systems. * @return pointer to path separator character string */ - static const char *GetPathSeparator() { return "/";}; + static const char *GetPathSeparator() { return "/"; } /** * Constructor. A filename could be supplied at this point, or specified diff --git a/fastos/src/vespa/fastos/linux_file.cpp b/fastos/src/vespa/fastos/linux_file.cpp index fadef5fd0c6..747ceef4880 100644 --- a/fastos/src/vespa/fastos/linux_file.cpp +++ b/fastos/src/vespa/fastos/linux_file.cpp @@ -324,6 +324,7 @@ FastOS_Linux_File::DirectIOPadding (int64_t offset, size_t length, size_t &padBe if (_directIOEnabled) { if (int64_t(offset+length) > _cachedSize) { // _cachedSize is not really trustworthy, so if we suspect it is not correct, we correct it. + // The main reason is that it will not reflect the file being extended by another filedescriptor. _cachedSize = GetSize(); } padBefore = offset & (_directIOFileAlign - 1); |