]> granicus.if.org Git - postgresql/commit
Fix assorted defects in 09adc9a8c09c9640de05c7023b27fb83c761e91c.
authorRobert Haas <rhaas@postgresql.org>
Thu, 21 Apr 2016 17:24:09 +0000 (13:24 -0400)
committerRobert Haas <rhaas@postgresql.org>
Thu, 21 Apr 2016 17:27:41 +0000 (13:27 -0400)
commit9f84280ae94b43b75dcf32aef433545335e7bb16
tree558ba10db587c46c2e2917bd8fd88691558e6198
parent7cb1db1d9599f0a09d6920d2149d956ef6d88b0e
Fix assorted defects in 09adc9a8c09c9640de05c7023b27fb83c761e91c.

That commit increased all shared memory allocations to the next higher
multiple of PG_CACHE_LINE_SIZE, but it didn't ensure that allocation
started on a cache line boundary.  It also failed to remove a couple
other pieces of now-useless code.

BUFFERALIGN() is perhaps obsolete at this point, and likely should be
removed at some point, too, but that seems like it can be left to a
future cleanup.

Mistakes all pointed out by Andres Freund.  The patch is mine, with
a few extra assertions which I adopted from his version of this fix.
src/backend/storage/buffer/buf_init.c
src/backend/storage/ipc/shmem.c