pgsql: Skip extraneous locking in XLogCheckBuffer().

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Skip extraneous locking in XLogCheckBuffer().
Date: 2013-04-08 08:14:43
Message-ID: E1UP7Dv-0005Y0-SQ@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2013-04-08 13:30:22 pgsql: Fix calculation of how many segments to retain for wal_keep_segm
Previous Message Dimitri Fontaine 2013-04-08 08:11:30 Re: pgsql: Get rid of USE_WIDE_UPPER_LOWER dependency in trigram constructi