pull/16154/merge
Prajjawal Agarwal 2024-01-07 07:39:18 +02:00 committed by GitHub
commit 2ba188910a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 0 deletions

1
changelog.d/16154.misc Normal file
View File

@ -0,0 +1 @@
Added additional debug logging to MultiWriterIdGenerator.__init__ and get_cache_dict.

View File

@ -2386,6 +2386,7 @@ class DatabasePool:
min_val = min(cache.values()) + 1
else:
min_val = max_value
logger.debug("Calling get_cache_dict %s: %s", table, sql)
return cache, min_val

View File

@ -460,6 +460,9 @@ class MultiWriterIdGenerator(AbstractStreamIdGenerator):
# position with the current minimum.
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(
self,
db_conn: LoggingDatabaseConnection,