From e46344de86b92da7bb8c6e82c8f668fa5d20357c Mon Sep 17 00:00:00 2001 From: dec05eba <0xdec05eba@gmail.com> Date: Sun, 20 May 2018 11:14:16 +0200 Subject: Update memory usage test --- src/Database.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Database.cpp b/src/Database.cpp index 918cd4e..140ca85 100644 --- a/src/Database.cpp +++ b/src/Database.cpp @@ -122,12 +122,13 @@ namespace odhtdb /*.proxy_server = */"", /*.push_node_id = */"" }); + node.setStorageLimit(1024 * 1024 * 1); // 1 Megabyte auto portStr = to_string(port); node.bootstrap(bootstrapNodeAddr, portStr.c_str()); const auto &remoteNodes = databaseStorage.getRemoteNodes(); if(!remoteNodes.empty()) node.bootstrap(remoteNodes); - Log::debug("Connecting to bootstrap node (%s) and %u other known nodes that we have connected to previously", bootstrapNodeAddr, remoteNodes.size()); + Log::debug("Connecting to bootstrap node (%s) and %u other known nodes that we have connected to previously with port %d", bootstrapNodeAddr, remoteNodes.size(), port); // TODO: Make this work for multiple threads initializing database at same time ++databaseCount; -- cgit v1.2.3