Browse Source
INSERT OR REPLACE deletes the old row and inserts a new one, resetting unspecified columns (online, update_ts) to DEFAULT 0. This was wiping online=1 set by cs_on_peer_status_changed/member_sync_set_online. Replaced 5 INSERT OR REPLACE INTO nodes with INSERT INTO ... ON CONFLICT DO UPDATE SET — only updates the specified columns, preserving online status. Files: - chat_core.c:638 (invite flow) - chat_sync.c:1045 (CHANNEL_INFO_RESP), 1193 (JOIN), 1449 (PEER_UPSERT) - topo_node_sqlite.c:121 (BGP node_put)topo_upd
3 changed files with 22 additions and 6 deletions
Loading…
Reference in new issue