Merge lp:~stub/launchpad/pending-db-changes into lp:launchpad/db-devel

Proposed by Stuart Bishop
Status: Rejected
Rejected by: Stuart Bishop
Proposed branch: lp:~stub/launchpad/pending-db-changes
Merge into: lp:launchpad/db-devel
Diff against target: None lines
To merge this branch: bzr merge lp:~stub/launchpad/pending-db-changes
Reviewer Review Type Date Requested Status
Canonical Launchpad Engineering Pending
Review via email: mp+8256@code.launchpad.net

This proposal has been superseded by a proposal from 2009-07-06.

To post a comment you must log in.
Revision history for this message
Stuart Bishop (stub) wrote :

Remove noise from the staging rebuild output.

Just write summary information instead of one line for every table and sequence added to replication.

There is plenty of more noise, but this is low hanging fruit.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'database/replication/initialize.py'
2--- database/replication/initialize.py 2009-04-17 10:32:16 +0000
3+++ database/replication/initialize.py 2009-07-06 10:31:51 +0000
4@@ -142,9 +142,11 @@
5 comment='Launchpad tables and sequences');
6 """)
7
8+ script.append(
9+ "echo 'Adding %d tables to replication set @lpmain_set';"
10+ % len(lpmain_tables))
11 for table in sorted(lpmain_tables):
12 script.append("""
13- echo 'Adding %(table)s to replication set @lpmain_set';
14 set add table (
15 set id=@lpmain_set,
16 origin=@master_node,
17@@ -154,9 +156,11 @@
18 entry_id += 1
19
20 entry_id = 200
21+ script.append(
22+ "echo 'Adding %d sequences to replication set @lpmain_set';"
23+ % len(lpmain_sequences))
24 for sequence in sorted(lpmain_sequences):
25 script.append("""
26- echo 'Adding %(sequence)s to replication set @lpmain_set';
27 set add sequence (
28 set id=@lpmain_set,
29 origin=@master_node,

Subscribers

People subscribed via source and target branches

to status/vote changes: