mirror of
https://github.com/aziascreations/BakaShrot.git
synced 2026-11-23 20:58:46 +01:00
Made the roles the only lists of topics, Refused PRAGMAs in queries
- Removed `[server] topics` and `[replication] replicated_topics`: a push is taken by its roles' `push_topics`, a replicated message by the peer's `accept_topics`; a topic exists from its first message. - Topics that only came from a peer are read and listed like any other; `ListNames` lists the topics with messages, filtered by the roles. - A push to a topic no role names is `NotAllowed`; `UnknownName` is only for nodes. - Clients' queries: every PRAGMA refused as it's prepared (SQLite's authorizer), `PRAGMA query_only = 0` used to take effect. - Noted the leads found by reading the code in `docs/known-issues.md`. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -158,8 +158,17 @@ Also decided (2026-11-13):
|
||||
"Replication by address" below);
|
||||
- **no default topic** (dropped from the protocol too, 2026-11-13): a
|
||||
push always names its topic;
|
||||
- `[replication] replicated_topics`, optional: the only topics
|
||||
replicated at all, whatever the roles say, to filter on edge nodes.
|
||||
- **the roles are the only lists of topics** (2026-11-16): `[server]
|
||||
topics` and `[replication] replicated_topics` are gone (refused as
|
||||
unknown keys), they repeated the roles. A push is taken if its
|
||||
roles' `push_topics` name the topic, a replicated message if the
|
||||
peer's `accept_topics` do; a topic exists from its first message,
|
||||
and is read, listed (`ListNames`: the topics with messages) and
|
||||
sent on by the roles that name it. So a topic that only came from a
|
||||
peer is read like any other, and a push to a topic nobody names is
|
||||
`NotAllowed` (`UnknownName` is only for nodes now). Before: `topics`
|
||||
since 2026-11-13, `replicated_topics` to filter on edge nodes (now
|
||||
their peers' `send_topics`).
|
||||
- **Schema v9, not compatible with v8** (2026-11-13): old databases aren't
|
||||
opened, their data isn't carried over (the real-life tests start empty).
|
||||
`docs/storage.md`:
|
||||
|
||||
Reference in New Issue
Block a user