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

Commit0df1dc6

Browse files
committed
This simple patch fixes broken Makefile, broken ApplySnapshot and
makes all utilities honour --verbose command line option.--Yours, Alexey V. Borzov, Webmaster of RDW.ru
1 parentc666d6f commit0df1dc6

File tree

7 files changed

+15
-3
lines changed

7 files changed

+15
-3
lines changed

‎contrib/rserv/ApplySnapshot.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,13 @@ $sinfo = "$sinfo host=$opt_host" if (defined($opt_host));
3232
$sinfo ="$sinfo user=$opt_user"if (defined($opt_user));
3333
$sinfo ="$sinfo password=$opt_password"if (defined($opt_password));
3434

35-
my$conn = Pg::connectdb(sinfo);
35+
my$conn = Pg::connectdb($sinfo);
3636

3737
my$inpf = new IO::File;
3838
$inpf =STDIN;
3939

40+
$RServ::quiet = !$verbose;
41+
4042
$res = ApplySnapshot ($conn,$inpf);
4143

4244
if ($res > 0)

‎contrib/rserv/CleanLog.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ print "Slave connection is $sinfo\n" if ($debug);
3838

3939
my$conn = Pg::connectdb($minfo);
4040

41+
$RServ::quiet = !$verbose;
42+
4143
$res = CleanLog($conn,$howold);
4244

4345
exit(1)if$res < 0;

‎contrib/rserv/GetSyncID.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ $sinfo = "$sinfo password=$opt_password" if (defined($opt_password));
3737
print("Connecting to '$sinfo'\n")if ($debug ||$verbose);
3838
my$conn = Pg::connectdb($sinfo);
3939

40+
$RServ::quiet = !$verbose;
41+
4042
$res = GetSyncID($conn);
4143

4244
die"ERROR\n"if$res < 0;

‎contrib/rserv/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ override DLLLIBS := $(BE_DLLLIBS) $(DLLLIBS)
2222
all:$(SQLS)$(TCLS)$(PERLS)$(SCRIPTS)$(SONAME)
2323

2424
%.sql:%.sql.in
25-
sed's,@MODULE_FILENAME@,$$libdir/$(NAME),g'$<>$@
25+
sed's,@MODULE_FILENAME@,$(pkglibdir)/$(SONAME),g'$<>$@
2626

2727
$(PERLS)$(TCLS)$(SCRIPTS):%:%.in
28-
sed -e's,@MODULE_FILENAME@,$$libdir/$(NAME),g'\
28+
sed -e's,@MODULE_FILENAME@,$(pkglibdir)/$(SONAME),g'\
2929
-e's:@SQLDIR@:$(datadir)/contrib:g'\
3030
-e's:@BINDIR@:$(bindir):g'\
3131
-e's:@LIBDIR@:$(datadir)/contrib:g'$<>$@

‎contrib/rserv/MasterSync.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ $minfo = "$minfo password=$opt_password" if (defined($opt_password));
3636

3737
my$conn = Pg::connectdb($minfo);
3838

39+
$RServ::quiet = !$verbose;
40+
3941
$res = SyncSyncID($conn,$server,$syncid);
4042

4143
if ($res == 0)

‎contrib/rserv/PrepareSnapshot.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ my $conn = Pg::connectdb($minfo);
3939
my$outf = new IO::File;
4040
$outf =STDOUT;
4141

42+
$RServ::quiet = !$verbose;
43+
4244
$res = PrepareSnapshot ($conn,$outf,$server);
4345

4446
if ($res == 0)

‎contrib/rserv/Replicate.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ print "Slave connection is $sinfo\n" if ($debug);
4949
my$mconn = Pg::connectdb($minfo);
5050
my$sconn = Pg::connectdb($sinfo);
5151

52+
$RServ::quiet = !$verbose;
53+
5254
SyncSync($mconn,$sconn);
5355

5456
my$outf = new IO::File;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp