fix: merkle_sync.c linked-list -> queue lookup, upgrade debug logs to INFO
- merkle_sync.c ms_find_conn_for_node: replace c=c->next with queue_find_data_by_index - chat_sync.c cs_find_conn_for_node, cs_on_conn_up: DEBUG_DEBUG -> DEBUG_INFO - etcp.c queue_set_ready: DEBUG_DEBUG -> DEBUG_INFO
This commit is contained in:
1 parent
d71753fa79
commit
d161782b46
3 files changed
+11
-10
No files matched your search
+2
-2
@@ -581,7 +581,7 @@ void etcp_conn_queue_set_ready(struct ETCP_CONN* conn) {
|
||||
if (!conn || conn->state != 0) return;
|
||||
|
||||
// Reindex: remove old entry (key=0), add new entry with real peer_node_id
|
||||
DEBUG_DEBUG(DEBUG_CATEGORY_DEBUG, "[%s] queue_set_ready: removing old entry=%p key=0 -> new key=0x%llx",
|
||||
DEBUG_INFO(DEBUG_CATEGORY_DEBUG, "[%s] queue_set_ready: removing old entry=%p key=0 -> new key=0x%llx",
|
||||
conn->log_name, (void*)conn->conn_queue_entry, (unsigned long long)conn->peer_node_id);
|
||||
if (conn->conn_queue && conn->conn_queue_entry) {
|
||||
queue_remove_data(conn->conn_queue, conn->conn_queue_entry);
|
||||
@@ -597,7 +597,7 @@ void etcp_conn_queue_set_ready(struct ETCP_CONN* conn) {
|
||||
conn->conn_queue = conn->instance->connections;
|
||||
conn->state = 1;
|
||||
queue_data_put_with_index(conn->instance->connections, qe);
|
||||
DEBUG_DEBUG(DEBUG_CATEGORY_DEBUG, "[%s] queue_set_ready: new entry=%p put in queue, count=%d",
|
||||
DEBUG_INFO(DEBUG_CATEGORY_DEBUG, "[%s] queue_set_ready: new entry=%p put in queue, count=%d",
|
||||
conn->log_name, (void*)qe, queue_entry_count(conn->instance->connections));
|
||||
|
||||
DEBUG_INFO(DEBUG_CATEGORY_ETCP, "[%s] moved to ready queue, state=%d peer_node_id=0x%llx",
|
||||
|
||||
Reference in new issue
Block a user