aboutsummaryrefslogtreecommitdiffstats
path: root/util/system/mlock.cpp
diff options
context:
space:
mode:
authororivej <orivej@yandex-team.ru>2022-02-10 16:44:49 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:44:49 +0300
commit718c552901d703c502ccbefdfc3c9028d608b947 (patch)
tree46534a98bbefcd7b1f3faa5b52c138ab27db75b7 /util/system/mlock.cpp
parente9656aae26e0358d5378e5b63dcac5c8dbe0e4d0 (diff)
downloadydb-718c552901d703c502ccbefdfc3c9028d608b947.tar.gz
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/system/mlock.cpp')
-rw-r--r--util/system/mlock.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/system/mlock.cpp b/util/system/mlock.cpp
index 435338c98f..c70f8f3351 100644
--- a/util/system/mlock.cpp
+++ b/util/system/mlock.cpp
@@ -66,9 +66,9 @@ void LockAllMemory(ELockAllMemoryFlags flags) {
if (flags & LockFutureMemory) {
sys_flags |= MCL_FUTURE;
}
- if (flags & LockMemoryOnFault) {
- sys_flags |= MCL_ONFAULT;
- }
+ if (flags & LockMemoryOnFault) {
+ sys_flags |= MCL_ONFAULT;
+ }
if (mlockall(sys_flags)) {
ythrow yexception() << LastSystemErrorText();
}