Skip to content

Commit d4b280a

Browse files
committed
Fix tests
1 parent 4e6aadc commit d4b280a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mysql_ch_replicator/db_replicator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def create_initial_structure_table(self, table_name):
161161
def prevent_binlog_removal(self):
162162
if time.time() - self.last_touch_time < self.BINLOG_TOUCH_INTERVAL:
163163
return
164-
binlog_directory = os.path.join(self.config.binlog_replicator.data_dir, self.config.database)
164+
binlog_directory = os.path.join(self.config.binlog_replicator.data_dir, self.database)
165165
logger.info(f'touch binlog {binlog_directory}')
166166
if not os.path.exists(binlog_directory):
167167
return

0 commit comments

Comments
 (0)