Re: BUG in XLogRecordAssemble - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: BUG in XLogRecordAssemble
Date
Msg-id 5547B495.7040607@iki.fi
Whole thread Raw
In response to BUG in XLogRecordAssemble  ("Zhang Zq" <zqzhangmail@163.com>)
List pgsql-hackers
On 05/04/2015 07:04 PM, Zhang Zq wrote:
> hi,
>     I found the code in 'backend/access/transam/xloginsert.c' as that:
> XLogRecordAssemble:
>   if (prev_regbuf && RelFileNodeEquals(regbuf->rnode, prev_regbuf->rnode))
>          {
>              samerel = true;
>              bkpb.fork_flags |= BKPBLOCK_SAME_REL;
>              prev_regbuf = regbuf;
>          }
>          else
>              samerel = false;
>
> There is the only place that prev_regbuf is assigned, so prev_regbuf will never be assigned.
> The patch will fix it, Thanks.

Thanks, good catch! Committed.

- Heikki




pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Unexpected speed PLAIN vs. MAIN
Next
From: Robert Haas
Date:
Subject: Re: initdb -S and tablespaces