mirror of
https://github.com/matrix-org/synapse.git
synced 2025-02-23 07:35:47 +00:00
Added logs in MultiWriterIdGenerator.__init__() and get_cache_dict.
This commit is contained in:
parent
d6ae4041a4
commit
cdbd249e88
@ -2395,6 +2395,7 @@ class DatabasePool:
|
|||||||
min_val = min(cache.values()) + 1
|
min_val = min(cache.values()) + 1
|
||||||
else:
|
else:
|
||||||
min_val = max_value
|
min_val = max_value
|
||||||
|
logger.debug("Calling get_cache_dict %s: %s", table, sql)
|
||||||
|
|
||||||
return cache, min_val
|
return cache, min_val
|
||||||
|
|
||||||
|
@ -432,7 +432,10 @@ class MultiWriterIdGenerator(AbstractStreamIdGenerator):
|
|||||||
# write to the stream. In which case, let's pre-seed our own
|
# write to the stream. In which case, let's pre-seed our own
|
||||||
# position with the current minimum.
|
# position with the current minimum.
|
||||||
self._current_positions[self._instance_name] = self._persisted_upto_position
|
self._current_positions[self._instance_name] = self._persisted_upto_position
|
||||||
|
|
||||||
|
table_string = "\n".join(", ".join(row) for row in tables)
|
||||||
|
logger.debug(f"{table_string}")
|
||||||
|
|
||||||
def _load_current_ids(
|
def _load_current_ids(
|
||||||
self,
|
self,
|
||||||
db_conn: LoggingDatabaseConnection,
|
db_conn: LoggingDatabaseConnection,
|
||||||
|
Loading…
Reference in New Issue
Block a user