Skip to content

Commit

Permalink
Merge pull request #8 from molindo/pending-data-error
Browse files Browse the repository at this point in the history
Fix dbmirror2 replication init, function search_path  (fixes #6)
  • Loading branch information
lalinsky authored Aug 22, 2024
2 parents dafaa65 + 4c0b008 commit cfdd439
Show file tree
Hide file tree
Showing 4 changed files with 146 additions and 140 deletions.
1 change: 1 addition & 0 deletions mbslave.conf.default
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ cover_art_archive=cover_art_archive
event_art_archive=event_art_archive
wikidocs=wikidocs
documentation=documentation
dbmirror2=dbmirror2
ignore=
5 changes: 5 additions & 0 deletions mbslave/replication.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,7 @@ def create_schemas(config: Config) -> None:
'statistics',
'documentation',
'wikidocs',
'dbmirror2'
]
for schema in schemas:
if schema in config.schemas.ignored_schemas:
Expand Down Expand Up @@ -683,6 +684,10 @@ def mbslave_init_main(config: Config, args: argparse.Namespace) -> None:
# triggers
('musicbrainz', 'CreateMirrorOnlyTriggers.sql'),

# replication
('musicbrainz', 'ReplicationSetup.sql'),
('dbmirror2', 'dbmirror2/ReplicationSetup.sql'),

]

for schema, sql_script in sql_scripts:
Expand Down
Loading

0 comments on commit cfdd439

Please sign in to comment.