projects
/
folly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2187ccc
)
folly: MemoryMapping: less verbose warning on TRY_LOCK+ENOMEM failures
author
Lucian Grijincu
<lucian@fb.com>
Wed, 16 Nov 2016 04:24:38 +0000
(20:24 -0800)
committer
Facebook Github Bot
<facebook-github-bot-bot@fb.com>
Wed, 16 Nov 2016 04:38:28 +0000
(20:38 -0800)
Reviewed By: philippv
Differential Revision:
D4184097
fbshipit-source-id:
2f1f82b845528fea4667af612c92c348f8d9ec25
folly/MemoryMapping.cpp
patch
|
blob
|
history
diff --git
a/folly/MemoryMapping.cpp
b/folly/MemoryMapping.cpp
index bc094d380a65fd4b4c494edbec256807c9535cd7..71918c4e34ab067759aaa1a8514b5247492e7f0e 100644
(file)
--- a/
folly/MemoryMapping.cpp
+++ b/
folly/MemoryMapping.cpp
@@
-258,10
+258,11
@@
bool MemoryMapping::mlock(LockMode lock) {
}
auto msg =
- folly::sformat("mlock({}) failed at {}", mapLength_, amountSucceeded);
-
- if (lock == LockMode::TRY_LOCK && (errno == EPERM || errno == ENOMEM)) {
+ folly::format("mlock({}) failed at {}", mapLength_, amountSucceeded);
+ if (lock == LockMode::TRY_LOCK && errno == EPERM) {
PLOG(WARNING) << msg;
+ } else if (lock == LockMode::TRY_LOCK && errno == ENOMEM) {
+ VLOG(1) << msg;
} else {
PLOG(FATAL) << msg;
}