summaryrefslogtreecommitdiffstats
path: root/fastos
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2016-07-08 21:22:23 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2016-07-08 21:22:23 +0200
commit1acc6d2e210aebb60e2cff64a4b2aaa4b3491e17 (patch)
tree0a3c3d64803c7f8b591a78f1c8007054e5ea5dbc /fastos
parent4ba91508d00bcbc4c7847b6ba23e68944c8a328c (diff)
Update comment and remove unnecessary ;
Diffstat (limited to 'fastos')
-rw-r--r--fastos/src/vespa/fastos/file.h2
-rw-r--r--fastos/src/vespa/fastos/linux_file.cpp1
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);