Re: Page Checksums

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Page Checksums
Дата
Msg-id 1324237329.28578.1.camel@vanquo.pezone.net
обсуждение исходный текст
Ответ на Re: Page Checksums  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Список pgsql-hackers
On sön, 2011-12-18 at 21:34 +0200, Heikki Linnakangas wrote:
> On 18.12.2011 20:44, David Fetter wrote:
>  > Any way to
>  > simulate them, even if it's by injecting faults into the source code?
> 
> Hmm, it's hard to persuade the OS to suffer a torn page on purpose. What 
> you could do is split the write() call in mdwrite() into two. First 
> write the 1st half of the page, then the second. Then you can put a 
> breakpoint in between the writes, and kill the system before the 2nd 
> half is written.

Perhaps the Library-level Fault Injector (http://lfi.sf.net) could be
used to set up a test for this.  (Not that I think you need one, but if
David wants to see it happen himself ...)



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Page Checksums
Следующее
От: Jesper Krogh
Дата:
Сообщение: Re: Page Checksums