|
8 | 8 | *
|
9 | 9 | *
|
10 | 10 | * IDENTIFICATION
|
11 |
| - * $PostgreSQL: pgsql/src/backend/storage/ipc/sinvaladt.c,v 1.69 2008/03/18 12:36:43 alvherre Exp $ |
| 11 | + * $PostgreSQL: pgsql/src/backend/storage/ipc/sinvaladt.c,v 1.70 2008/06/17 20:07:08 tgl Exp $ |
12 | 12 | *
|
13 | 13 | *-------------------------------------------------------------------------
|
14 | 14 | */
|
@@ -82,7 +82,6 @@ typedef struct SISeg
|
82 | 82 | int maxMsgNum; /* next message number to be assigned */
|
83 | 83 | int lastBackend; /* index of last active procState entry, +1 */
|
84 | 84 | int maxBackends; /* size of procState array */
|
85 |
| - int freeBackends; /* number of empty procState slots */ |
86 | 85 |
|
87 | 86 | /*
|
88 | 87 | * Next LocalTransactionId to use for each idle backend slot. We keep
|
@@ -157,7 +156,6 @@ CreateSharedInvalidationState(void)
|
157 | 156 | shmInvalBuffer->maxMsgNum = 0;
|
158 | 157 | shmInvalBuffer->lastBackend = 0;
|
159 | 158 | shmInvalBuffer->maxBackends = MaxBackends;
|
160 |
| - shmInvalBuffer->freeBackends = MaxBackends; |
161 | 159 |
|
162 | 160 | /* The buffer[] array is initially all unused, so we need not fill it */
|
163 | 161 |
|
@@ -223,9 +221,6 @@ SharedInvalBackendInit(void)
|
223 | 221 | /* Advertise assigned backend ID in MyProc */
|
224 | 222 | MyProc->backendId = MyBackendId;
|
225 | 223 |
|
226 |
| - /* Reduce free slot count */ |
227 |
| - segP->freeBackends--; |
228 |
| - |
229 | 224 | /* Fetch next local transaction ID into local memory */
|
230 | 225 | nextLocalTransactionId = segP->nextLXID[MyBackendId - 1];
|
231 | 226 |
|
@@ -273,9 +268,6 @@ CleanupInvalidationState(int status, Datum arg)
|
273 | 268 | }
|
274 | 269 | segP->lastBackend = i;
|
275 | 270 |
|
276 |
| - /* Adjust free slot count */ |
277 |
| - segP->freeBackends++; |
278 |
| - |
279 | 271 | LWLockRelease(SInvalLock);
|
280 | 272 | }
|
281 | 273 |
|
|
0 commit comments