[pgcluster: 846] Re: レプリケーション起動時のエラーメッセージ
三村 眞史
mimura @ ups.ne.jp
2005年 11月 30日 (水) 15:15:43 JST
浅羽さま
ご返信ありがとうございます、三村です。
> > コードを見ただけでコンパイルすらしていませんが、次のパッチでどうでしょ
> > うか?
> >
> > --- replicate.c.bk 2005-11-30 12:31:44.000000000 +0900
> > +++ replicate.c 2005-11-30 12:31:57.000000000 +0900
> > @@ -3408,7 +3408,7 @@
> > strncpy(header.from_host,hostName,sizeof(header.from_host));
> > strncpy(header.userName,userName,sizeof(header.userName));
> > strcpy(header.dbName,"template1");
> > - PGRreplicate_packet_send( &header, query, NOTICE_SYSTEM_CALL_TYPE );
> > + PGRreplicate_packet_send( &header, query, -1);
> > }
> >
> > static bool
>
> ちなみに上記パッチは pgcluster-1.1.1a/src/pgcluster/pgrp/replicate.c
> に対するパッチです。
上記パッチを当ててコンパイル、インストールした後reliableモードで
pgreplicateを起動してみました。
[postgres @ RP01 ~]$ pgreplicate -lnv
DEBUG:replicate_main():replicate main 8001 port bind OK
DEBUG:PGRreplicate_packet_send():cmdSts=N
DEBUG:PGRreplicate_packet_send():cmdType=
DEBUG:PGRreplicate_packet_send():rlog=0
DEBUG:PGRreplicate_packet_send():request_id=0
DEBUG:PGRreplicate_packet_send():replicate_id=0
DEBUG:PGRreplicate_packet_send():port=0
DEBUG:PGRreplicate_packet_send():pid=0
DEBUG:PGRreplicate_packet_send():from_host=RP01
DEBUG:PGRreplicate_packet_send():dbName=template1
DEBUG:PGRreplicate_packet_send():userName=postgres
DEBUG:PGRreplicate_packet_send():recieve sec=0
DEBUG:PGRreplicate_packet_send():recieve usec=0
DEBUG:PGRreplicate_packet_send():query_size=59
DEBUG:PGRreplicate_packet_send():query=SELECT PGR_SYSTEM_COMMAND_FUNCTION(1,'RP01',8001,8101,8201)
DEBUG:sem_lock[1]
DEBUG:pgr_createConn():PQsetdbLogin host[CL01] port[5432] db[template1] user[postgres]
DEBUG:pgr_createConn():PQsetdbLogin host[CL02] port[5432] db[template1] user[postgres]
DEBUG:pgr_createConn():PQsetdbLogin ok
DEBUG:pgr_createConn():PQsetdbLogin ok
DEBUG:sem_unlock[1]
ERROR:PGRreturn_result():destination socket is closed
ERROR:PGRreturn_result():send error:〜というエラーはでなくなりましたが、
別のエラーメッセージが表示されてしまいました。
#-------------------------
# 三村 眞史
# E-Mail <mimura @ ups.ne.jp>
#-------------------------
pgcluster メーリングリストの案内