Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/agents/inference_agent/InferenceAgent.cc
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#define LOG_LEVEL DEBUG_LEVEL
#include "InferenceAgent.h"

#include <limits.h>

#include <fstream>
#include <sstream>
#define LOG_LEVEL DEBUG_LEVEL

#include "AtomDBSingleton.h"
#include "AttentionBrokerClient.h"
#include "InferenceContext.h"
Expand Down
2 changes: 1 addition & 1 deletion src/agents/link_creation_agent/LinkCreationAgent.cc
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#define LOG_LEVEL DEBUG_LEVEL
#include "LinkCreationAgent.h"

#include <fstream>

#include "LinkCreateTemplate.h"
#include "LinkProcessor.h"
#define LOG_LEVEL DEBUG_LEVEL
#include "Logger.h"
#include "expression_hasher.h"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#define LOG_LEVEL DEBUG_LEVEL
#include "LinkCreationRequestProcessor.h"

#include "LinkCreationRequestProxy.h"
#define LOG_LEVEL DEBUG_LEVEL
#include "Logger.h"

using namespace link_creation_agent;
Expand Down
2 changes: 1 addition & 1 deletion src/atomdb/redis_mongodb/RedisMongoDB.cc
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ vector<string> RedisMongoDB::add_links(const vector<atoms::Link*>& links,
mongodb_doc.emplace(link, *this);
}

if (ctx->get_pending_commands_count() >= REDIS_CHUNK_SIZE) {
if (static_cast<uint>(ctx->get_pending_commands_count()) >= REDIS_CHUNK_SIZE) {
LOG_DEBUG("Flushing Redis commands batch START");
ctx->flush_commands();
LOG_DEBUG("Flushing Redis commands batch END");
Expand Down
1 change: 1 addition & 0 deletions src/commons/Utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ class Utils {
{ \
LOG_ERROR(string(msg) + StackTrace::to_string()); \
Utils::error(msg, true, false); \
__builtin_unreachable(); \
}

#ifdef LOG_LEVEL
Expand Down
2 changes: 1 addition & 1 deletion src/db_adapter/AtomPersister.cc
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ void AtomPersister::send_batch(vector<shared_ptr<Atom>> atoms,

timer_success.stop();

this->total_count.fetch_add(static_cast<int>(atoms.size())) + static_cast<int>(atoms.size());
this->total_count.fetch_add(static_cast<int>(atoms.size()));
Comment thread
coderabbitai[bot] marked this conversation as resolved.

this->batches_completed.fetch_add(1);

Expand Down
2 changes: 1 addition & 1 deletion src/db_adapter/sql/postgres/PostgresWrapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ SqlRow PostgresWrapper::build_sql_row(const pqxx::row& row, const Table& table,
sql_row.table_name = table.name;
sql_row.primary_key = ColumnValue{columns[0], row[0].c_str()};

for (size_t i = 1; i < columns.size() && i < row.size(); i++) {
for (size_t i = 1; i < columns.size() && i < static_cast<size_t>(row.size()); i++) {
auto field = row[i];

if (field.is_null()) continue;
Expand Down
5 changes: 2 additions & 3 deletions src/tests/cpp/profiling_test.cc
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#include "Utils.h"
#include "gtest/gtest.h"

#define LOG_LEVEL DEBUG_LEVEL
#include "Logger.h"
#include "Utils.h"
#include "gtest/gtest.h"

using namespace commons;
using namespace std;
Expand Down
Loading