Content-Length: 287558 | pFad | http://github.com/postgrespro/postgres_cluster/commit/ccd07e646aa889c3f8d452d78d134d65ebc5bb0e

39 dump log after stop command · postgrespro/postgres_cluster@ccd07e6 · GitHub
Skip to content

Commit ccd07e6

Browse files
committed
dump log after stop command
1 parent e196961 commit ccd07e6

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Cluster.pm

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,21 +188,22 @@ sub stop
188188
my $nodes = $self->{nodes};
189189
$mode = 'fast' unless defined $mode;
190190

191-
$self->dumplogs();
192-
193191
my $ok = 1;
194192
diag("stopping cluster ${mode}ly");
195193

196194
foreach my $node (@$nodes) {
197195
if (!stopnode($node, $mode)) {
198196
$ok = 0;
199-
if (!stopnode($node, 'kill')) {
200-
my $name = $node->name;
201-
BAIL_OUT("failed to kill $name");
202-
}
197+
# if (!stopnode($node, 'kill')) {
198+
# my $name = $node->name;
199+
# BAIL_OUT("failed to kill $name");
200+
# }
203201
}
204202
}
205203
sleep(2);
204+
205+
$self->dumplogs();
206+
206207
return $ok;
207208
}
208209

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/ccd07e646aa889c3f8d452d78d134d65ebc5bb0e

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy