File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 8
8
*
9
9
*
10
10
* IDENTIFICATION
11
- * $PostgreSQL: pgsql/src/backend/storage/ipc/sinvaladt.c,v 1.68 2008/03/17 11:50:27 alvherre Exp $
11
+ * $PostgreSQL: pgsql/src/backend/storage/ipc/sinvaladt.c,v 1.69 2008/03/18 12:36:43 alvherre Exp $
12
12
*
13
13
*-------------------------------------------------------------------------
14
14
*/
@@ -330,12 +330,8 @@ SIInsertDataEntry(SharedInvalidationMessage *data)
330
330
* queries, but if a backend is sitting idle then it won't be starting
331
331
* transactions and so won't be reading SI entries.
332
332
*/
333
- if (numMsgs == (MAXNUMMESSAGES * 70 / 100 ) &&
334
- IsUnderPostmaster )
335
- {
336
- elog (DEBUG4 , "SI table is 70%% full, signaling postmaster" );
333
+ if (numMsgs == (MAXNUMMESSAGES * 70 / 100 ) && IsUnderPostmaster )
337
334
signal_postmaster = true;
338
- }
339
335
340
336
/*
341
337
* Insert new message into proper slot of circular buffer
@@ -346,7 +342,10 @@ SIInsertDataEntry(SharedInvalidationMessage *data)
346
342
LWLockRelease (SInvalLock );
347
343
348
344
if (signal_postmaster )
345
+ {
346
+ elog (DEBUG4 , "SI table is 70%% full, signaling postmaster" );
349
347
SendPostmasterSignal (PMSIGNAL_WAKEN_CHILDREN );
348
+ }
350
349
351
350
return true;
352
351
}
You can’t perform that action at this time.
0 commit comments