summary refs log tree commit diff
path: root/changelog.d/7440.misc
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2020-05-13 13:38:22 +0100
committerGitHub <noreply@github.com>2020-05-13 13:38:22 +0100
commit782e4e64df58dd9e114e7e1e467ae55219336b79 (patch)
tree861ac6fc207e586af98366e8017c6650b528c93c /changelog.d/7440.misc
parentHave all instances correctly respond to REPLICATE command. (#7475) (diff)
downloadsynapse-782e4e64df58dd9e114e7e1e467ae55219336b79.tar.xz
Shuffle persist event data store functions. (#7440)
The aim here is to get to a stage where we have a `PersistEventStore` that holds all the write methods used during event persistence, so that we can take that class out of the `DataStore` mixin and instansiate it separately. This will allow us to instansiate it on processes other than master, while also ensuring it is only available on processes that are configured to write to events stream.

This is a bit of an architectural change, where we end up with multiple classes per data store (rather than one per data store we have now). We end up having:

1. Storage classes that provide high level APIs that can talk to multiple data stores.
2. Data store modules that consist of classes that must point at the same database instance.
3. Classes in a data store that can be instantiated on processes depending on config.
Diffstat (limited to 'changelog.d/7440.misc')
-rw-r--r--changelog.d/7440.misc1
1 files changed, 1 insertions, 0 deletions
diff --git a/changelog.d/7440.misc b/changelog.d/7440.misc
new file mode 100644
index 0000000000..2505cdc66f
--- /dev/null
+++ b/changelog.d/7440.misc
@@ -0,0 +1 @@
+Refactor event persistence database functions in preparation for allowing them to be run on non-master processes.