diff --git a/src/memgraph_init.cpp b/src/memgraph_init.cpp index 3c7bd3f9c..28284d5e0 100644 --- a/src/memgraph_init.cpp +++ b/src/memgraph_init.cpp @@ -29,8 +29,10 @@ BoltSession::BoltSession(SessionData *data, communication::OutputStream>(input_stream, output_stream), transaction_engine_(data->db, data->interpreter), +#ifndef MG_SINGLE_NODE_HA auth_(data->auth), audit_log_(data->audit_log), +#endif endpoint_(endpoint) {} using TEncoder = diff --git a/src/memgraph_init.hpp b/src/memgraph_init.hpp index 027744b7b..8f0899279 100644 --- a/src/memgraph_init.hpp +++ b/src/memgraph_init.hpp @@ -74,9 +74,11 @@ class BoltSession final }; query::TransactionEngine transaction_engine_; +#ifndef MG_SINGLE_NODE_HA auth::Auth *auth_; std::optional user_; audit::Log *audit_log_; +#endif io::network::Endpoint endpoint_; }; diff --git a/src/telemetry/system_info.cpp b/src/telemetry/system_info.cpp index 4a4f5089a..94ee52d4b 100644 --- a/src/telemetry/system_info.cpp +++ b/src/telemetry/system_info.cpp @@ -52,12 +52,12 @@ const nlohmann::json GetSystemInfo() { auto mem_data = utils::ReadLines("/proc/meminfo"); for (auto &row : mem_data) { auto tmp = utils::Trim(row); - if (utils::StartsWith(row, "MemTotal")) { - auto split = utils::Split(row); + if (utils::StartsWith(tmp, "MemTotal")) { + auto split = utils::Split(tmp); if (split.size() < 2) continue; memory = std::stoull(split[1]); - } else if (utils::StartsWith(row, "SwapTotal")) { - auto split = utils::Split(row); + } else if (utils::StartsWith(tmp, "SwapTotal")) { + auto split = utils::Split(tmp); if (split.size() < 2) continue; swap = std::stoull(split[1]); }