Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita7ebd82

Browse files
committed
Fix a warning in Perl test code
The code was passing a scalar argument to node->restart(), but it wasexpecting a hash, which causes a warning from Perl ("Odd number ofelements in hash assignment").But the node->restart() function doesn't take a mode argument anyway.This was probably copied from an incorrect comment (see commit750c59d). The default restart mode is already "fast", so the testshould still be semantically correct without explicitly specifying themode.Discussion:https://www.postgresql.org/message-id/e3f4bf1b-63d3-408a-b07e-d35a0fdf1b98@eisentraut.org
1 parent98c6231 commita7ebd82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/test/recovery/t/006_logical_decoding.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
# If we immediately crash the server we might lose the progress we just made
7171
# and replay the same changes again. But a clean shutdown should never repeat
7272
# the same changes when we use the SQL decoding interface.
73-
$node_primary->restart('fast');
73+
$node_primary->restart;
7474

7575
# There are no new writes, so the result should be empty.
7676
$result =$node_primary->safe_psql('postgres',

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp