pgsql: Code cleanup in SyncRepWaitForLSN()

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Code cleanup in SyncRepWaitForLSN()
Date: 2016-08-12 11:50:31
Message-ID: E1bYAyt-0005vN-JZ@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Code cleanup in SyncRepWaitForLSN()

Commit 14e8803f1 removed LWLocks when accessing MyProc->syncRepState
but didn't clean up the surrounding code and comments.

Cleanup and backpatch to 9.5, to keep code similar.

Julien Rouhaud, improved by suggestion from Michael Paquier,
implemented trivially by myself.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/e05f6f75dbe00a7349dccf1116b5ed983b4728c0

Modified Files
--------------
src/backend/replication/syncrep.c | 18 +++++-------------
1 file changed, 5 insertions(+), 13 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Simon Riggs 2016-08-12 11:50:39 pgsql: Code cleanup in SyncRepWaitForLSN()
Previous Message Simon Riggs 2016-08-12 09:37:10 pgsql: Correct TABLESAMPLE docs