Commit d059cdd4 authored by Tom Jackson's avatar Tom Jackson Committed by Jordan DeLong

Renaming flag in MemoryMapping

Summary:
This flag conflicts with the flag with the same purpose in
`common/files/MemoryMappedFile.cpp`. Just renaming it for now.

Test Plan: Build

Reviewed By: lucian@fb.com

FB internal diff: D717067
parent 2b8ea381
......@@ -22,7 +22,7 @@
#include <sys/types.h>
#include <system_error>
DEFINE_int64(mlock_max_size_at_once, 1 << 20, // 1MB
DEFINE_int64(mlock_chunk_size, 1 << 20, // 1MB
"Maximum bytes to mlock/munlock/munmap at once "
"(will be rounded up to PAGESIZE)");
......@@ -100,11 +100,11 @@ namespace {
off_t memOpChunkSize(off_t length) {
off_t chunkSize = length;
if (FLAGS_mlock_max_size_at_once <= 0) {
if (FLAGS_mlock_chunk_size <= 0) {
return chunkSize;
}
chunkSize = FLAGS_mlock_max_size_at_once;
chunkSize = FLAGS_mlock_chunk_size;
off_t pageSize = sysconf(_SC_PAGESIZE);
off_t r = chunkSize % pageSize;
if (r) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment