]> granicus.if.org Git - postgresql/commit
Fix variable confusion in BufferSync().
authorRobert Haas <rhaas@postgresql.org>
Fri, 6 Jan 2012 13:32:32 +0000 (08:32 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 6 Jan 2012 13:35:41 +0000 (08:35 -0500)
commitf9f04845045086feb1144f52cc2911e9f08efe3f
tree0dffe6587bdb9103c9352904714c0a48a11fb0dc
parentd1d836f92c0798f4bc4138dc6b87279199c4f49a
Fix variable confusion in BufferSync().

As noted by Heikki Linnakangas, the previous coding confused the "flags"
variable with the "mask" variable.  The affect of this appears to be that
unlogged buffers would get written out at every checkpoint rather than
only at shutdown time.  Although that's arguably an acceptable failure
mode, I'm back-patching this change, since it seems like a poor idea to
rely on this happening to work.
src/backend/storage/buffer/bufmgr.c