Tom Lane wrote:
> Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> > A buffer's io_in_progress lock protects the buffer's CRC.
> Unfortunately, it doesn't. See hint bits.
Hmm, so it seems we need to keep held of the bufferhead's spinlock while
calculating the checksum, just after resetting BM_JUST_DIRTIED. Yuck.
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
In response to
pgsql-hackers by date
|Next:||From: Tom Lane||Date: 2008-10-01 15:34:54|
|Subject: Re: Block-level CRC checks |
|Previous:||From: Jonah H. Harris||Date: 2008-10-01 15:21:13|
|Subject: Re: Block-level CRC checks|