Commit 9bd61311 authored by Alvaro Herrera's avatar Alvaro Herrera

PostgresNode: initialize $timed_out if passed

Corrects an oversight in 2c83f435 where the $timed_out reference var
isn't initialized; using it would require the caller to initialize it
beforehand, which is cumbersome.

Author: Craig Ringer
parent 80b986cf
...@@ -1032,6 +1032,8 @@ sub psql ...@@ -1032,6 +1032,8 @@ sub psql
IPC::Run::timeout($params{timeout}, exception => $timeout_exception) IPC::Run::timeout($params{timeout}, exception => $timeout_exception)
if (defined($params{timeout})); if (defined($params{timeout}));
${$params{timed_out}} = 0 if defined $params{timed_out};
# IPC::Run would otherwise append to existing contents: # IPC::Run would otherwise append to existing contents:
$$stdout = "" if ref($stdout); $$stdout = "" if ref($stdout);
$$stderr = "" if ref($stderr); $$stderr = "" if ref($stderr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment