Skip to content

Commit fbdc4a7

Browse files
committed
indent
1 parent 410f56e commit fbdc4a7

6 files changed

Lines changed: 26 additions & 26 deletions

File tree

src/backend/executor/execParallel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ ExecInstrInitWorker(shm_toc *toc, uint64 key, bool missing_ok)
300300
* torn down. Returns NULL if there was no instrumentation.
301301
*/
302302
SharedWorkerInstrumentation *
303-
ExecInstrRetrieve(SharedWorkerInstrumentation * shared, Size elemsz)
303+
ExecInstrRetrieve(SharedWorkerInstrumentation *shared, Size elemsz)
304304
{
305305
Size size;
306306
SharedWorkerInstrumentation *si;

src/backend/executor/nodeBitmapIndexscan.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -399,11 +399,11 @@ ExecBitmapIndexScanInitializeWorker(BitmapIndexScanState *node,
399399

400400
/*
401401
* Write statistics straight into this worker's shared slot as the scan
402-
* runs, rather than into worker-local memory copied out at shutdown.
403-
* This has no write-side contention (one writer per slot) and lets the
404-
* leader observe progress mid-query. The slot is not reset here: when
405-
* workers are relaunched (e.g. a rescanned Gather) the counts accumulate
406-
* across rounds.
402+
* runs, rather than into worker-local memory copied out at shutdown. This
403+
* has no write-side contention (one writer per slot) and lets the leader
404+
* observe progress mid-query. The slot is not reset here: when workers
405+
* are relaunched (e.g. a rescanned Gather) the counts accumulate across
406+
* rounds.
407407
*/
408408
Assert(ParallelWorkerNumber < node->biss_SharedInfo->num_workers);
409409
pfree(node->biss_Instrument);
@@ -414,8 +414,8 @@ ExecBitmapIndexScanInitializeWorker(BitmapIndexScanState *node,
414414
/*
415415
* Unlike a plain index scan, the bitmap index scan descriptor is created
416416
* eagerly in ExecInitBitmapIndexScan, before this runs, and it captured a
417-
* pointer to the now-freed local instrumentation. Repoint it at the shared
418-
* slot so the AM writes there (and not into freed memory).
417+
* pointer to the now-freed local instrumentation. Repoint it at the
418+
* shared slot so the AM writes there (and not into freed memory).
419419
*/
420420
if (node->biss_ScanDesc != NULL)
421421
node->biss_ScanDesc->instrument = node->biss_Instrument;

src/backend/executor/nodeIndexonlyscan.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -872,11 +872,11 @@ ExecIndexOnlyScanInstrumentInitWorker(IndexOnlyScanState *node,
872872

873873
/*
874874
* Write statistics straight into this worker's shared slot as the scan
875-
* runs, rather than into worker-local memory copied out at shutdown.
876-
* This has no write-side contention (one writer per slot) and lets the
877-
* leader observe progress mid-query. The slot is not reset here: when
878-
* workers are relaunched (e.g. a rescanned Gather) the counts accumulate
879-
* across rounds.
875+
* runs, rather than into worker-local memory copied out at shutdown. This
876+
* has no write-side contention (one writer per slot) and lets the leader
877+
* observe progress mid-query. The slot is not reset here: when workers
878+
* are relaunched (e.g. a rescanned Gather) the counts accumulate across
879+
* rounds.
880880
*/
881881
Assert(ParallelWorkerNumber < node->ioss_SharedInfo->num_workers);
882882
pfree(node->ioss_Instrument);

src/backend/executor/nodeIndexscan.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1807,11 +1807,11 @@ ExecIndexScanInstrumentInitWorker(IndexScanState *node,
18071807

18081808
/*
18091809
* Write statistics straight into this worker's shared slot as the scan
1810-
* runs, rather than into worker-local memory copied out at shutdown.
1811-
* This has no write-side contention (one writer per slot) and lets the
1812-
* leader observe progress mid-query. The slot is not reset here: when
1813-
* workers are relaunched (e.g. a rescanned Gather) the counts accumulate
1814-
* across rounds.
1810+
* runs, rather than into worker-local memory copied out at shutdown. This
1811+
* has no write-side contention (one writer per slot) and lets the leader
1812+
* observe progress mid-query. The slot is not reset here: when workers
1813+
* are relaunched (e.g. a rescanned Gather) the counts accumulate across
1814+
* rounds.
18151815
*/
18161816
Assert(ParallelWorkerNumber < node->iss_SharedInfo->num_workers);
18171817
pfree(node->iss_Instrument);

src/include/executor/execParallel.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ extern void ParallelQueryMain(dsm_segment *seg, shm_toc *toc);
5050

5151
/* Generic per-worker node instrumentation container helpers */
5252
extern void ExecInstrEstimate(ParallelContext *pcxt, Size elemsz);
53-
extern SharedWorkerInstrumentation * ExecInstrInitDSM(ParallelContext *pcxt,
54-
uint64 key, Size elemsz);
55-
extern SharedWorkerInstrumentation * ExecInstrInitWorker(shm_toc *toc,
56-
uint64 key, bool missing_ok);
57-
extern SharedWorkerInstrumentation * ExecInstrRetrieve(SharedWorkerInstrumentation * shared,
58-
Size elemsz);
53+
extern SharedWorkerInstrumentation *ExecInstrInitDSM(ParallelContext *pcxt,
54+
uint64 key, Size elemsz);
55+
extern SharedWorkerInstrumentation *ExecInstrInitWorker(shm_toc *toc,
56+
uint64 key, bool missing_ok);
57+
extern SharedWorkerInstrumentation *ExecInstrRetrieve(SharedWorkerInstrumentation *shared,
58+
Size elemsz);
5959

6060
#endif /* EXECPARALLEL_H */

src/include/executor/instrument_node.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ typedef struct SharedWorkerInstrumentation
4646
{
4747
int num_workers;
4848
/* num_workers cache-line-padded slots follow; see GetWorkerInstr() */
49-
} SharedWorkerInstrumentation;
49+
} SharedWorkerInstrumentation;
5050

5151
/* DSM bytes needed for a container holding nworkers slots of elemsz bytes */
5252
static inline Size
@@ -58,7 +58,7 @@ SharedWorkerInstrSize(int nworkers, Size elemsz)
5858

5959
/* Address of a given worker's slot (untyped) */
6060
static inline void *
61-
GetWorkerInstrSlot(SharedWorkerInstrumentation * si, Size elemsz, int worker)
61+
GetWorkerInstrSlot(SharedWorkerInstrumentation *si, Size elemsz, int worker)
6262
{
6363
return (char *) si + CACHELINEALIGN(sizeof(SharedWorkerInstrumentation)) +
6464
(Size) worker * CACHELINEALIGN(elemsz);

0 commit comments

Comments
 (0)