Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Moar fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjohnston committed Jan 11, 2021
1 parent 2110d23 commit 2dd67e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions synapse/storage/databases/main/events_bg_updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ async def _chain_cover_index(self, progress: dict, batch_size: int) -> int:
def _get_next_room(txn: Cursor) -> Optional[str]:
sql = """
SELECT room_id FROM rooms
WHERE room_id > ? AND NOT has_auth_chain_index
WHERE room_id > ? AND (NOT has_auth_chain_index or has_auth_chain_index IS NULL)
ORDER BY room_id
LIMIT 1
"""
Expand Down Expand Up @@ -777,11 +777,11 @@ def _get_event_ids(txn: Cursor) -> List[Tuple[str, int, int]]:

if len(event_ids) < batch_size:
await self.db_pool.updates._background_update_progress(
"_chain_cover_index", {"current_room_id": current_room_id}
"chain_cover", {"current_room_id": current_room_id}
)
else:
await self.db_pool.updates._background_update_progress(
"_chain_cover_index",
"chain_cover",
{
"current_room_id": current_room_id,
"last_depth": rows[-1][1],
Expand Down

0 comments on commit 2dd67e1

Please sign in to comment.