Skip to content

Commit c13e868

Browse files
author
Marcin Przepiorowski
committed
v2.4.17
2 parents e2d0775 + bf675ca commit c13e868

22 files changed

+2807
-205
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
## 2.4.17
2+
3+
<B>Breaking change</B>
4+
If dx_ctl_replication script is used please review your scipts
5+
and add <i>-action replicate</i> to keep current functionality
6+
7+
### Changes
8+
9+
- dx_ctl_replication - <b>Breaking change</b> - More functionality (create/update/delete profile) has been added and parameter <i>-action</i> is required
10+
- dx_get_replication - backup of the replication profiles has been added
11+
- dx_get_osversion - fix
12+
- dx_get_config - backup of engine configuration to the JSON file has been added
13+
- fix to issue with some database names / comments
14+
- [bug #218](https://github.com/delphix/dxtoolkit/issues/218) - fix in dx_v2p
15+
- [bug #214](https://github.com/delphix/dxtoolkit/issues/214) - fix to no of CPU
16+
- [bug #208](https://github.com/delphix/dxtoolkit/issues/208) - fix to limited user privileges
17+
18+
### Added
19+
20+
- dx_ctl_config - initialise and configure engine using JSON file
21+
- dx_get_namespace - list all replicated namespace
22+
- dx_ctl_namespace - failover or delete namespace
123
## 2.4.16.3
224

325
### Changes

bin/dx_config.pl

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
'debug' => \(my $debug),
4646
'convert=s' => \(my $convert),
4747
'csvfile|f=s' => \(my $csvfile),
48+
'append' => \(my $append),
4849
'text|c=s' => \(my $conf_param_file),
4950
'configfile|c=s' => \(my $configfile),
5051
'version|v' => \(my $print_version)
@@ -73,7 +74,7 @@
7374
}
7475

7576
if ( ($convert eq 'todxconf') && (defined($conf_param_file))) {
76-
convert_text_todxconf($conf_param_file, $configfile);
77+
convert_text_todxconf($conf_param_file, $configfile, $append);
7778
}
7879

7980

@@ -160,7 +161,8 @@ sub convert_todxconf {
160161
sub convert_text_todxconf {
161162
my $conf_param_file = shift;
162163
my $configfile = shift;
163-
my @engine_list;
164+
my $append = shift;
165+
my @engine_list;
164166
chomp $conf_param_file;
165167

166168

@@ -179,7 +181,25 @@ sub convert_text_todxconf {
179181
exit 1;
180182
}
181183

182-
my %engine;
184+
if (defined($append)) {
185+
if (! -e $configfile ) {
186+
print("Config file must exist for append option\n");
187+
exit 1;
188+
}
189+
my $engine_obj = new Engine ('1.4');
190+
$engine_obj->load_config($configfile);
191+
for my $en ($engine_obj->getAllEngines()) {
192+
my $eng = $engine_obj->getEngine($en);
193+
foreach (keys %{$eng}) {
194+
delete $eng->{$_} unless defined $eng->{$_};
195+
}
196+
$eng->{"hostname"} = $en;
197+
push(@engine_list, $eng);
198+
}
199+
}
200+
201+
202+
my %engine;
183203

184204
if ($username ne '') {
185205
%engine = (

0 commit comments

Comments
 (0)