mirror of
https://github.com/postgres/postgres.git
synced 2025-11-21 00:42:43 +03:00
pgindent run for 9.6
This commit is contained in:
@@ -187,11 +187,12 @@ BufferShmemSize(void)
|
||||
|
||||
/*
|
||||
* It would be nice to include the I/O locks in the BufferDesc, but that
|
||||
* would increase the size of a BufferDesc to more than one cache line, and
|
||||
* benchmarking has shown that keeping every BufferDesc aligned on a cache
|
||||
* line boundary is important for performance. So, instead, the array of
|
||||
* I/O locks is allocated in a separate tranche. Because those locks are
|
||||
* not highly contentended, we lay out the array with minimal padding.
|
||||
* would increase the size of a BufferDesc to more than one cache line,
|
||||
* and benchmarking has shown that keeping every BufferDesc aligned on a
|
||||
* cache line boundary is important for performance. So, instead, the
|
||||
* array of I/O locks is allocated in a separate tranche. Because those
|
||||
* locks are not highly contentended, we lay out the array with minimal
|
||||
* padding.
|
||||
*/
|
||||
size = add_size(size, mul_size(NBuffers, sizeof(LWLockMinimallyPadded)));
|
||||
/* to allow aligning the above */
|
||||
|
||||
@@ -4291,8 +4291,8 @@ void
|
||||
TestForOldSnapshot_impl(Snapshot snapshot, Relation relation)
|
||||
{
|
||||
if (!IsCatalogRelation(relation)
|
||||
&& !RelationIsAccessibleInLogicalDecoding(relation)
|
||||
&& (snapshot)->whenTaken < GetOldSnapshotThresholdTimestamp())
|
||||
&& !RelationIsAccessibleInLogicalDecoding(relation)
|
||||
&& (snapshot)->whenTaken < GetOldSnapshotThresholdTimestamp())
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_SNAPSHOT_TOO_OLD),
|
||||
errmsg("snapshot too old")));
|
||||
|
||||
Reference in New Issue
Block a user