Re: Duplicated assignment of slot_name in walsender.c - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Duplicated assignment of slot_name in walsender.c
Date
Msg-id 20151021224212.GI32218@awork2.anarazel.de
Whole thread Raw
In response to Re: Duplicated assignment of slot_name in walsender.c  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Responses Re: Duplicated assignment of slot_name in walsender.c  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-hackers
On 2015-10-21 19:36:16 -0300, Alvaro Herrera wrote:
> diff --git a/src/backend/replication/walsender.c b/src/backend/replication/walsender.c
> index c6043cd..5487cc0 100644
> --- a/src/backend/replication/walsender.c
> +++ b/src/backend/replication/walsender.c
> @@ -762,10 +762,10 @@ logical_read_xlog_page(XLogReaderState *state, XLogRecPtr targetPagePtr, int req
>  static void
>  CreateReplicationSlot(CreateReplicationSlotCmd *cmd)
>  {
> -    const char *slot_name;
>      const char *snapshot_name = NULL;
>      char        xpos[MAXFNAMELEN];
>      StringInfoData buf;
> +    int            len;

If you want to do that, I'm unenthusiastically not objecting. But if so,
let's also do it in IdentifySystem(), SendTimeLineHistory(),
StartReplication(), SendBackupHeader(), SendXLogRecPtResult() - they're
modeled after each other.

Do you want to commit the slot_name with the rest or do you want me to
do that?

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Duplicated assignment of slot_name in walsender.c
Next
From: Thomas Munro
Date:
Subject: Re: bugs and bug tracking