pgsql: Widen amount-to-flush arguments of FileWriteback and callers.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Widen amount-to-flush arguments of FileWriteback and callers.
Date: 2016-04-13 22:12:11
Message-ID: E1aqT1A-0004Bo-04@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Widen amount-to-flush arguments of FileWriteback and callers.

It's silly to define these counts as narrower than they might someday
need to be. Also, I believe that the BLCKSZ * nflush calculation in
mdwriteback was capable of overflowing an int.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/95ef43c4308102d23afa887c9fc28d9977612a2d

Modified Files
--------------
src/backend/storage/file/fd.c | 14 +++++++-------
src/backend/storage/smgr/md.c | 9 +++++----
src/backend/storage/smgr/smgr.c | 4 ++--
src/include/storage/fd.h | 2 +-
src/include/storage/smgr.h | 4 ++--
5 files changed, 17 insertions(+), 16 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2016-04-13 22:29:43 pgsql: Avoid atomic operation in MarkLocalBufferDirty().
Previous Message Andres Freund 2016-04-13 21:23:56 Re: [HACKERS] Re: pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold <