From 06b949509367b330481af64bbb1be5f10d364b3a Mon Sep 17 00:00:00 2001 From: arhag Date: Fri, 8 Jun 2018 14:06:42 -0400 Subject: [PATCH] Improve chainbase mlock message --- src/chainbase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chainbase.cpp b/src/chainbase.cpp index ff19c878a8a..93306f0ccdf 100644 --- a/src/chainbase.cpp +++ b/src/chainbase.cpp @@ -85,8 +85,8 @@ namespace chainbase { //also it doesn't looks as nice as warnings generated by fc //this message is for 1.0.2 because failing here would be incompatibel with 1.0 //for 1.1 it probably will be changed to throw an exception - std::cerr << "CHAINBASE: Failed to lock chainbase in RAM: " << std::strerror(errno) << std::endl - << "CHAINBASE: Performance degradation is possible" << std::endl; + std::cerr << "CHAINBASE: Failed to pin chainbase shared memory (of size " << (_segment->get_size() / (1024.0*1024.0)) + << " MB) in RAM. Performance degradation is possible." << std::endl; } #endif }