Обсуждение: pgsql: Skip extraneous locking in XLogCheckBuffer().

Поиск
Список
Период
Сортировка

pgsql: Skip extraneous locking in XLogCheckBuffer().

От
Simon Riggs
Дата:
Skip extraneous locking in XLogCheckBuffer().
Heikki reported comment was wrong, so fixed
code to match the comment: we only need to
take additional locking precautions when we
have a shared lock on the buffer.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/5787c6730e7a848ef95d5c4194e27614ea8e6e41

Modified Files
--------------
src/backend/access/transam/xlog.c |   27 ++++++++++++++++-----------
1 files changed, 16 insertions(+), 11 deletions(-)