aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/direct_io.cpp
diff options
context:
space:
mode:
authorAlexey Salmin <alexey.salmin@gmail.com>2022-02-10 16:49:37 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:37 +0300
commit3c5b1607b38f637d2f3313791ed25c2e080d2647 (patch)
tree99be7b96e7c66612fbca94331100ef3b5fedcb88 /util/system/direct_io.cpp
parentde89752358147d7b25ef59a85b431bb564068a49 (diff)
downloadydb-3c5b1607b38f637d2f3313791ed25c2e080d2647.tar.gz
Restoring authorship annotation for Alexey Salmin <alexey.salmin@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'util/system/direct_io.cpp')
-rw-r--r--util/system/direct_io.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/system/direct_io.cpp b/util/system/direct_io.cpp
index f59c54b0cb..8a0d453bdd 100644
--- a/util/system/direct_io.cpp
+++ b/util/system/direct_io.cpp
@@ -34,10 +34,10 @@ namespace {
} else if (linuxVersionCode < KERNEL_VERSION(2, 6, 0)) {
Alignment = NSystemInfo::GetPageSize();
} else {
- // Default alignment used to be 512, but most modern devices rely on 4k physical blocks.
- // 4k alignment works well for both 512 and 4k blocks and doesn't require 512e support in the kernel.
- // See IGNIETFERRO-946.
- Alignment = 4096;
+ // Default alignment used to be 512, but most modern devices rely on 4k physical blocks.
+ // 4k alignment works well for both 512 and 4k blocks and doesn't require 512e support in the kernel.
+ // See IGNIETFERRO-946.
+ Alignment = 4096;
}
#endif
}