pgsql: Adjust pg_fsync_writethrough so that it will set errno when

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Adjust pg_fsync_writethrough so that it will set errno when
Date: 2010-02-22 15:26:15
Message-ID: 20100222152615.268DF7541D0@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Adjust pg_fsync_writethrough so that it will set errno when failing
on a platform that doesn't support this operation. The former coding
would allow an unrelated errno to be reported, which would be quite
misleading. Not sure if this has anything to do with the current
buildfarm failures, but it's certainly bogus as-is.

Modified Files:
--------------
pgsql/src/backend/storage/file:
fd.c (r1.154 -> r1.155)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/file/fd.c?r1=1.154&r2=1.155)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2010-02-22 15:29:46 pgsql: Let's try forcing errno to zero before issuing fsync.
Previous Message Tom Lane 2010-02-22 14:53:59 Re: Re: pgsql: Speed up CREATE DATABASE by deferring the fsyncs until after