Skip to content
Snippets Groups Projects
Unverified Commit d2fd7f7b authored by Patrick Cloke's avatar Patrick Cloke Committed by GitHub
Browse files

Fix a stale comment in get_room_version_id_txn. (#12969)

parent 9dc3293e
No related branches found
No related tags found
No related merge requests found
Fix an inaccurate comment.
......@@ -127,13 +127,8 @@ class StateGroupWorkerStore(EventsWorkerStore, SQLBaseStore):
NotFoundError: if the room is unknown
"""
# First we try looking up room version from the database, but for old
# rooms we might not have added the room version to it yet so we fall
# back to previous behaviour and look in current state events.
#
# We really should have an entry in the rooms table for every room we
# care about, but let's be a bit paranoid (at least while the background
# update is happening) to avoid breaking existing rooms.
# care about, but let's be a bit paranoid.
room_version = self.db_pool.simple_select_one_onecol_txn(
txn,
table="rooms",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment