aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/file.cpp
diff options
context:
space:
mode:
authoraosipenko <aosipenko@yandex-team.ru>2022-02-10 16:48:08 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:08 +0300
commit948fd24d47d4b3b7815aaef1686aea00ef3f4288 (patch)
tree8ad4c39c2a5f8b341bc02e3b0c5e8f26c40373cb /util/system/file.cpp
parentd2eb4aae699fa2f6901bf32d22eec019c8f29838 (diff)
downloadydb-948fd24d47d4b3b7815aaef1686aea00ef3f4288.tar.gz
Restoring authorship annotation for <aosipenko@yandex-team.ru>. Commit 1 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 4a261d020c..c971df64e2 100644
--- a/util/system/file.cpp
+++ b/util/system/file.cpp
@@ -86,10 +86,10 @@ TFileHandle::TFileHandle(const TString& fName, EOpenMode oMode) noexcept {
case OpenAlways:
fcMode = OPEN_ALWAYS;
break;
- case CreateNew:
+ case CreateNew:
fcMode = CREATE_NEW;
break;
- case CreateAlways:
+ case CreateAlways:
fcMode = CREATE_ALWAYS;
break;
default:
@@ -152,10 +152,10 @@ TFileHandle::TFileHandle(const TString& fName, EOpenMode oMode) noexcept {
case OpenAlways:
fcMode = O_CREAT;
break;
- case CreateNew:
+ case CreateNew:
fcMode = O_CREAT | O_EXCL;
break;
- case CreateAlways:
+ case CreateAlways:
fcMode = O_CREAT | O_TRUNC;
break;
default:
@@ -417,7 +417,7 @@ bool TFileHandle::Flush() noexcept {
return false;
}
#if defined(_win_)
- bool ok = ::FlushFileBuffers(Fd_) != 0;
+ bool ok = ::FlushFileBuffers(Fd_) != 0;
/*
* FlushFileBuffers fails if hFile is a handle to the console output.
* That is because the console output is not buffered.