mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42:17 +03:00
pgindent run for 9.5
This commit is contained in:
@@ -332,8 +332,8 @@ dsm_impl_posix(dsm_op op, dsm_handle handle, Size request_size,
|
||||
|
||||
ereport(elevel,
|
||||
(errcode_for_dynamic_shared_memory(),
|
||||
errmsg("could not resize shared memory segment \"%s\" to %zu bytes: %m",
|
||||
name, request_size)));
|
||||
errmsg("could not resize shared memory segment \"%s\" to %zu bytes: %m",
|
||||
name, request_size)));
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -875,8 +875,8 @@ dsm_impl_mmap(dsm_op op, dsm_handle handle, Size request_size,
|
||||
|
||||
ereport(elevel,
|
||||
(errcode_for_dynamic_shared_memory(),
|
||||
errmsg("could not resize shared memory segment \"%s\" to %zu bytes: %m",
|
||||
name, request_size)));
|
||||
errmsg("could not resize shared memory segment \"%s\" to %zu bytes: %m",
|
||||
name, request_size)));
|
||||
return false;
|
||||
}
|
||||
else if (*mapped_size < request_size)
|
||||
|
||||
@@ -1707,12 +1707,12 @@ ProcArrayInstallRestoredXmin(TransactionId xmin, PGPROC *proc)
|
||||
pgxact = &allPgXact[proc->pgprocno];
|
||||
|
||||
/*
|
||||
* Be certain that the referenced PGPROC has an advertised xmin which
|
||||
* is no later than the one we're installing, so that the system-wide
|
||||
* xmin can't go backwards. Also, make sure it's running in the same
|
||||
* database, so that the per-database xmin cannot go backwards.
|
||||
* Be certain that the referenced PGPROC has an advertised xmin which is
|
||||
* no later than the one we're installing, so that the system-wide xmin
|
||||
* can't go backwards. Also, make sure it's running in the same database,
|
||||
* so that the per-database xmin cannot go backwards.
|
||||
*/
|
||||
xid = pgxact->xmin; /* fetch just once */
|
||||
xid = pgxact->xmin; /* fetch just once */
|
||||
if (proc->databaseId == MyDatabaseId &&
|
||||
TransactionIdIsNormal(xid) &&
|
||||
TransactionIdPrecedesOrEquals(xid, xmin))
|
||||
|
||||
@@ -317,7 +317,7 @@ shm_mq_set_handle(shm_mq_handle *mqh, BackgroundWorkerHandle *handle)
|
||||
shm_mq_result
|
||||
shm_mq_send(shm_mq_handle *mqh, Size nbytes, const void *data, bool nowait)
|
||||
{
|
||||
shm_mq_iovec iov;
|
||||
shm_mq_iovec iov;
|
||||
|
||||
iov.data = data;
|
||||
iov.len = nbytes;
|
||||
@@ -385,7 +385,7 @@ shm_mq_sendv(shm_mq_handle *mqh, shm_mq_iovec *iov, int iovcnt, bool nowait)
|
||||
offset = mqh->mqh_partial_bytes;
|
||||
do
|
||||
{
|
||||
Size chunksize;
|
||||
Size chunksize;
|
||||
|
||||
/* Figure out which bytes need to be sent next. */
|
||||
if (offset >= iov[which_iov].len)
|
||||
@@ -399,18 +399,18 @@ shm_mq_sendv(shm_mq_handle *mqh, shm_mq_iovec *iov, int iovcnt, bool nowait)
|
||||
|
||||
/*
|
||||
* We want to avoid copying the data if at all possible, but every
|
||||
* chunk of bytes we write into the queue has to be MAXALIGN'd,
|
||||
* except the last. Thus, if a chunk other than the last one ends
|
||||
* on a non-MAXALIGN'd boundary, we have to combine the tail end of
|
||||
* its data with data from one or more following chunks until we
|
||||
* either reach the last chunk or accumulate a number of bytes which
|
||||
* is MAXALIGN'd.
|
||||
* chunk of bytes we write into the queue has to be MAXALIGN'd, except
|
||||
* the last. Thus, if a chunk other than the last one ends on a
|
||||
* non-MAXALIGN'd boundary, we have to combine the tail end of its
|
||||
* data with data from one or more following chunks until we either
|
||||
* reach the last chunk or accumulate a number of bytes which is
|
||||
* MAXALIGN'd.
|
||||
*/
|
||||
if (which_iov + 1 < iovcnt &&
|
||||
offset + MAXIMUM_ALIGNOF > iov[which_iov].len)
|
||||
{
|
||||
char tmpbuf[MAXIMUM_ALIGNOF];
|
||||
int j = 0;
|
||||
char tmpbuf[MAXIMUM_ALIGNOF];
|
||||
int j = 0;
|
||||
|
||||
for (;;)
|
||||
{
|
||||
|
||||
@@ -188,8 +188,8 @@ ProcessCatchupInterrupt(void)
|
||||
*
|
||||
* It is awfully tempting to just call AcceptInvalidationMessages()
|
||||
* without the rest of the xact start/stop overhead, and I think that
|
||||
* would actually work in the normal case; but I am not sure that things
|
||||
* would clean up nicely if we got an error partway through.
|
||||
* would actually work in the normal case; but I am not sure that
|
||||
* things would clean up nicely if we got an error partway through.
|
||||
*/
|
||||
if (IsTransactionOrTransactionBlock())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user