Skip to content

Commit 7c608b6

Browse files
committed
MT#64445 sync-db helper change central db connection to pair
* Central db connection must not be used when syncing db data in the sync-db helper as it causes possible unexpected data behaviours when for instance changes in outbound_socket on web01 immediately applied to the central db node when running ngcpcfg apply on web01. Therefore, central db connection is switched to the pair (localhost:3306) one. Change-Id: Ie6b17d1bf074deca9cf8a7ac626211af6a43d0e1
1 parent 695da48 commit 7c608b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

helper/sync-db

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ my $ngcp_roles = read_ngcp_roles();
3030
my $ngcp_type = $ngcp_roles->{NGCP_TYPE};
3131
my $ngcp_is_proxy = $ngcp_roles->{NGCP_IS_PROXY};
3232

33-
my @db_conn_types = qw(central pair local);
33+
my @db_conn_types = qw(pair local);
3434
my $db_conn = {};
3535
my $db_info = {};
3636

@@ -180,7 +180,7 @@ sub generic_enum_sync {
180180
my $peer_pref = shift;
181181
my $pref_name = shift;
182182

183-
my $dbh = $db_conn->{central};
183+
my $dbh = $db_conn->{pair};
184184

185185
my $sth = $dbh->prepare("select id from voip_preferences where attribute=?");
186186
$sth->execute($pref_name);

0 commit comments

Comments
 (0)