aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/mlock.cpp
diff options
context:
space:
mode:
authorAlexander Fokin <apfokin@gmail.com>2022-02-10 16:45:38 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:38 +0300
commit863a59a65247c24db7cb06789bc5cf79d04da32f (patch)
tree139dc000c8cd4a40f5659e421b7c75135d080307 /util/system/mlock.cpp
parentf64e95a9eb9ab03240599eb9581c5a9102426a96 (diff)
downloadydb-863a59a65247c24db7cb06789bc5cf79d04da32f.tar.gz
Restoring authorship annotation for Alexander Fokin <apfokin@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'util/system/mlock.cpp')
-rw-r--r--util/system/mlock.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/system/mlock.cpp b/util/system/mlock.cpp
index 435338c98fb..df4891e219d 100644
--- a/util/system/mlock.cpp
+++ b/util/system/mlock.cpp
@@ -52,18 +52,18 @@ void UnlockMemory(const void* addr, size_t len) {
#endif
}
-void LockAllMemory(ELockAllMemoryFlags flags) {
- Y_UNUSED(flags);
+void LockAllMemory(ELockAllMemoryFlags flags) {
+ Y_UNUSED(flags);
#if defined(_android_)
// unimplemented
#elif defined(_cygwin_)
// unimplemented
#elif defined(_unix_)
int sys_flags = 0;
- if (flags & LockCurrentMemory) {
+ if (flags & LockCurrentMemory) {
sys_flags |= MCL_CURRENT;
}
- if (flags & LockFutureMemory) {
+ if (flags & LockFutureMemory) {
sys_flags |= MCL_FUTURE;
}
if (flags & LockMemoryOnFault) {