mirror of
https://github.com/postgres/postgres.git
synced 2025-08-17 01:02:17 +03:00
Post-feature-freeze pgindent run.
Discussion: https://postgr.es/m/15719.1523984266@sss.pgh.pa.us
This commit is contained in:
@@ -213,9 +213,9 @@ MakeNewSharedSegment(BufFile *buffile, int segment)
|
||||
|
||||
/*
|
||||
* It is possible that there are files left over from before a crash
|
||||
* restart with the same name. In order for BufFileOpenShared()
|
||||
* not to get confused about how many segments there are, we'll unlink
|
||||
* the next segment number if it already exists.
|
||||
* restart with the same name. In order for BufFileOpenShared() not to
|
||||
* get confused about how many segments there are, we'll unlink the next
|
||||
* segment number if it already exists.
|
||||
*/
|
||||
SharedSegmentName(name, buffile->name, segment + 1);
|
||||
SharedFileSetDelete(buffile->fileset, name, true);
|
||||
|
@@ -1203,9 +1203,10 @@ shm_mq_inc_bytes_read(shm_mq *mq, Size n)
|
||||
|
||||
/*
|
||||
* Separate prior reads of mq_ring from the increment of mq_bytes_read
|
||||
* which follows. This pairs with the full barrier in shm_mq_send_bytes().
|
||||
* We only need a read barrier here because the increment of mq_bytes_read
|
||||
* is actually a read followed by a dependent write.
|
||||
* which follows. This pairs with the full barrier in
|
||||
* shm_mq_send_bytes(). We only need a read barrier here because the
|
||||
* increment of mq_bytes_read is actually a read followed by a dependent
|
||||
* write.
|
||||
*/
|
||||
pg_read_barrier();
|
||||
|
||||
|
Reference in New Issue
Block a user