diff options
author | tolich <[email protected]> | 2022-02-10 16:48:42 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:48:42 +0300 |
commit | c662862405cbda305d8b2ff7693adf2595e3edc2 (patch) | |
tree | 8e90f9839e52b2f919afad2548603e234c09236f /util | |
parent | 4de04c154cab33e0eba93458503743261ec13de4 (diff) |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util')
-rw-r--r-- | util/system/file.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/util/system/file.cpp b/util/system/file.cpp index 4a261d020cb..b5b15b507d5 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); |