diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-05-20 11:14:16 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-08-18 23:25:46 +0200 |
commit | 63ea3c4f7fd0cd094c0b65dd57c8b991b29bbb32 (patch) | |
tree | d2a736cb1466eaff38b1a599c20736d47ae2bac5 /src | |
parent | e8ae086e6f5155764ba62596d97a0730eb424328 (diff) |
Update memory usage test
Diffstat (limited to 'src')
-rw-r--r-- | src/Database.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; |