summaryrefslogtreecommitdiffstats
path: root/util/system/file.cpp
diff options
context:
space:
mode:
authorermolovd <[email protected]>2022-02-10 16:47:53 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:47:53 +0300
commitb91bcef7c99a119b0846479ef71bfab4beec72ca (patch)
treebe118d54d12a61bc4812ceb0a266a170a2fa3bc9 /util/system/file.cpp
parentf421873774cf0b71743afbe5f6677861e66601ea (diff)
Restoring authorship annotation for <[email protected]>. 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 4a261d020cb..76b033cee2d 100644
--- a/util/system/file.cpp
+++ b/util/system/file.cpp
@@ -425,8 +425,8 @@ bool TFileHandle::Flush() noexcept {
*/
return ok || GetLastError() == ERROR_INVALID_HANDLE;
#elif defined(_unix_)
- int ret = ::fsync(Fd_);
-
+ int ret = ::fsync(Fd_);
+
/*
* Ignore EROFS, EINVAL - fd is bound to a special file
* (PIPE, FIFO, or socket) which does not support synchronization.
@@ -449,10 +449,10 @@ bool TFileHandle::FlushData() noexcept {
return false;
}
- int ret = ::fdatasync(Fd_);
-
+ int ret = ::fdatasync(Fd_);
+
// Same loginc in error handling as for fsync above.
- return ret == 0 || errno == EROFS || errno == EINVAL;
+ return ret == 0 || errno == EROFS || errno == EINVAL;
#else
return Flush();
#endif