aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/direct_io.h
diff options
context:
space:
mode:
authorAnton Samokhvalov <pg83@yandex.ru>2022-02-10 16:45:17 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:17 +0300
commitd3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch)
treedd4bd3ca0f36b817e96812825ffaf10d645803f2 /util/system/direct_io.h
parent72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff)
downloadydb-d3a398281c6fd1d3672036cb2d63f842d2cb28c5.tar.gz
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2.
Diffstat (limited to 'util/system/direct_io.h')
-rw-r--r--util/system/direct_io.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/util/system/direct_io.h b/util/system/direct_io.h
index b228af2105..6a3325a960 100644
--- a/util/system/direct_io.h
+++ b/util/system/direct_io.h
@@ -1,8 +1,8 @@
#pragma once
-#include "align.h"
-
-#include "file.h"
+#include "align.h"
+
+#include "file.h"
#include <util/generic/buffer.h>
// Supports Linux Direct-IO:
@@ -13,7 +13,7 @@ class TDirectIOBufferedFile {
public:
TDirectIOBufferedFile(const TString& path, EOpenMode oMode, size_t buflen = 1 << 17);
~TDirectIOBufferedFile();
-
+
void FlushData();
void Finish();
size_t Read(void* buffer, size_t byteCount);
@@ -49,7 +49,7 @@ private:
inline bool IsAligned(i64 value) {
return Alignment ? value == AlignDown<i64>(value, Alignment) : true;
}
-
+
inline bool IsAligned(const void* value) {
return Alignment ? value == AlignDown(value, Alignment) : true;
}
@@ -60,7 +60,7 @@ private:
void WriteToBuffer(const void* buf, size_t len, ui64 position);
void SetDirectIO(bool value);
-private:
+private:
TFile File;
size_t Alignment;
size_t BufLen;