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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Widen amount-to-flush arguments of FileWriteback and callers.
Дата
Msg-id E1aqT1A-0004Bo-04@gemulon.postgresql.org
обсуждение исходный текст
Список 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(-)


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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: [HACKERS] Re: pgsql: Avoid extra locks in GetSnapshotData if old_snapshot_threshold <
Следующее
От: Andres Freund
Дата:
Сообщение: pgsql: Avoid atomic operation in MarkLocalBufferDirty().