summaryrefslogtreecommitdiffstats
path: root/util/system/file.cpp
diff options
context:
space:
mode:
authortolich <[email protected]>2022-02-10 16:48:42 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:48:42 +0300
commit9e8a8cd0f33ded91ed66671e388f3af06dd2249e (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/system/file.cpp
parentc662862405cbda305d8b2ff7693adf2595e3edc2 (diff)
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/system/file.cpp')
-rw-r--r--util/system/file.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/system/file.cpp b/util/system/file.cpp
index b5b15b507d5..4a261d020cb 100644
--- a/util/system/file.cpp
+++ b/util/system/file.cpp
@@ -53,11 +53,11 @@
#include <sys/param.h>
#define HAVE_POSIX_FADVISE (__FreeBSD_version >= 900501)
#define HAVE_SYNC_FILE_RANGE 0
-#else
+#else
#define HAVE_POSIX_FADVISE 0
#define HAVE_SYNC_FILE_RANGE 0
-#endif
-
+#endif
+
static bool IsStupidFlagCombination(EOpenMode oMode) {
// ForAppend will actually not be applied in the following combinations:
return (oMode & (CreateAlways | ForAppend)) == (CreateAlways | ForAppend) || (oMode & (TruncExisting | ForAppend)) == (TruncExisting | ForAppend) || (oMode & (CreateNew | ForAppend)) == (CreateNew | ForAppend);
@@ -246,11 +246,11 @@ TFileHandle::TFileHandle(const TString& fName, EOpenMode oMode) noexcept {
if (Fd_ >= 0) {
if (oMode & NoReuse) {
::posix_fadvise(Fd_, 0, 0, POSIX_FADV_NOREUSE);
- }
+ }
if (oMode & Seq) {
::posix_fadvise(Fd_, 0, 0, POSIX_FADV_SEQUENTIAL);
- }
+ }
if (oMode & NoReadAhead) {
::posix_fadvise(Fd_, 0, 0, POSIX_FADV_RANDOM);