@@ -152,7 +152,7 @@ typedef struct BaseWorkerControlData
152152 /* current PID of the server starter */
153153 pid_t serverStarterPid ;
154154 int serverStarterProcno ;
155- } BaseWorkerControlData ;
155+ } BaseWorkerControlData ;
156156
157157
158158typedef enum WorkerState
@@ -162,7 +162,7 @@ typedef enum WorkerState
162162 WORKER_RUNNING ,
163163 WORKER_STOPPED ,
164164 WORKER_RESTARTING
165- } WorkerState ;
165+ } WorkerState ;
166166
167167
168168/*
@@ -184,7 +184,7 @@ typedef struct DatabaseStarterEntry
184184
185185 /* process number for signaling via ProcSendSignal */
186186 int procno ;
187- } DatabaseStarterEntry ;
187+ } DatabaseStarterEntry ;
188188
189189
190190/*
@@ -197,7 +197,7 @@ typedef struct BaseWorkerKey
197197
198198 /* worker ID */
199199 int32 workerId ;
200- } BaseWorkerKey ;
200+ } BaseWorkerKey ;
201201
202202
203203/*
@@ -225,7 +225,7 @@ typedef struct BaseWorkerEntry
225225
226226 /* when to restart the base worker (delayed after failure) */
227227 TimestampTz restartAfter ;
228- } BaseWorkerEntry ;
228+ } BaseWorkerEntry ;
229229
230230
231231/*
@@ -241,7 +241,7 @@ typedef struct DatabaseEntry
241241
242242 /* whether this is a template database */
243243 bool isTemplate ;
244- } DatabaseEntry ;
244+ } DatabaseEntry ;
245245
246246
247247/*
@@ -261,7 +261,7 @@ typedef struct BaseWorkerRegistration
261261
262262 /* entry point function */
263263 Oid entryPointFunctionId ;
264- } BaseWorkerRegistration ;
264+ } BaseWorkerRegistration ;
265265
266266/*
267267 * StartDatabaseStarterResult indicates whether a database starter was
@@ -273,7 +273,7 @@ typedef enum StartDatabaseStarterResult
273273 DATABASE_STARTER_EXISTS ,
274274 DATABASE_STARTER_DONE ,
275275 DATABASE_STARTER_FAILED
276- } StartDatabaseStarterResult ;
276+ } StartDatabaseStarterResult ;
277277
278278/*
279279 * StartBaseWorkerResult indicates whether a base worker was
@@ -286,7 +286,7 @@ typedef enum StartBaseWorkerResult
286286 BASE_WORKER_DONE ,
287287 BASE_WORKER_START_FAILED ,
288288 BASE_WORKER_START_BLOCKED
289- } StartBaseWorkerResult ;
289+ } StartBaseWorkerResult ;
290290
291291
292292
@@ -308,10 +308,10 @@ static StartDatabaseStarterResult StartDatabaseStarter(Oid databaseId,
308308 char * databaseName );
309309
310310/* shared memory bookkeeping */
311- static DatabaseStarterEntry * GetDatabaseStarterEntry (Oid databaseId , bool * isFound );
312- static DatabaseStarterEntry * GetOrCreateDatabaseStarterEntry (Oid databaseId , bool * isFound );
313- static BaseWorkerEntry * GetBaseWorkerEntry (Oid databaseId , int32 workerId , bool * isFound );
314- static BaseWorkerEntry * GetOrCreateBaseWorkerEntry (int32 workerId , bool * isFound );
311+ static DatabaseStarterEntry * GetDatabaseStarterEntry (Oid databaseId , bool * isFound );
312+ static DatabaseStarterEntry * GetOrCreateDatabaseStarterEntry (Oid databaseId , bool * isFound );
313+ static BaseWorkerEntry * GetBaseWorkerEntry (Oid databaseId , int32 workerId , bool * isFound );
314+ static BaseWorkerEntry * GetOrCreateBaseWorkerEntry (int32 workerId , bool * isFound );
315315static void RemoveBaseWorkerEntry (Oid databaseId , int32 workerId );
316316static void RemoveBaseWorkerEntriesForDatabase (Oid databaseId );
317317static void RemoveBaseWorkerEntriesNotInRegistrationList (List * workerRegistrationList );
@@ -377,7 +377,7 @@ PGDLLEXPORT void PgExtensionBaseDatabaseStarterMain(Datum arg);
377377PGDLLEXPORT void PgExtensionBaseWorkerMain (Datum arg );
378378
379379/* shared memory state */
380- static BaseWorkerControlData * BaseWorkerControl = NULL ;
380+ static BaseWorkerControlData * BaseWorkerControl = NULL ;
381381static HTAB * DatabaseStarterHash = NULL ;
382382static HTAB * BaseWorkerHash = NULL ;
383383
0 commit comments