Merge pull request #1839 from MemPalace/fix/graph-stats-sqlite-uri

fix(mcp): route _sqlite_graph_stats through sqlite_read_uri
This commit is contained in:
Igor Lins e Silva 2026-06-20 20:33:53 -03:00 committed by GitHub
commit e0da99b2d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1048,7 +1048,7 @@ def _sqlite_graph_stats():
# graph_stats degrades to build_graph() rather than raising — mirroring the
# sibling sqlite fast paths (_sqlite_taxonomy / _sqlite_wing_room_counts).
try:
conn = _sqlite3.connect(f"file:{db_path}?mode=ro", uri=True)
conn = _sqlite3.connect(sqlite_read_uri(db_path), uri=True)
try:
conn.execute("PRAGMA busy_timeout = 3000")
if (