mirror of
https://github.com/postgres/postgres.git
synced 2025-11-07 19:06:32 +03:00
Initialize ShmemVariableCache like other shmem areas
For sake of consistency. Reviewed-by: Tristan Partin, Richard Guo Discussion: https://www.postgresql.org/message-id/6537d63d-4bb5-46f8-9b5d-73a8ba4720ab@iki.fi
This commit is contained in:
@@ -89,7 +89,6 @@
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
|
||||
#include "access/transam.h"
|
||||
#include "access/xlog.h"
|
||||
#include "access/xlogrecovery.h"
|
||||
#include "catalog/pg_control.h"
|
||||
@@ -513,7 +512,6 @@ typedef struct
|
||||
#endif
|
||||
void *UsedShmemSegAddr;
|
||||
slock_t *ShmemLock;
|
||||
VariableCache ShmemVariableCache;
|
||||
Backend *ShmemBackendArray;
|
||||
#ifndef HAVE_SPINLOCKS
|
||||
PGSemaphore *SpinlockSemaArray;
|
||||
@@ -6034,7 +6032,6 @@ save_backend_variables(BackendParameters *param, Port *port, BackgroundWorker *w
|
||||
param->UsedShmemSegAddr = UsedShmemSegAddr;
|
||||
|
||||
param->ShmemLock = ShmemLock;
|
||||
param->ShmemVariableCache = ShmemVariableCache;
|
||||
param->ShmemBackendArray = ShmemBackendArray;
|
||||
|
||||
#ifndef HAVE_SPINLOCKS
|
||||
@@ -6280,7 +6277,6 @@ restore_backend_variables(BackendParameters *param, Port **port, BackgroundWorke
|
||||
UsedShmemSegAddr = param->UsedShmemSegAddr;
|
||||
|
||||
ShmemLock = param->ShmemLock;
|
||||
ShmemVariableCache = param->ShmemVariableCache;
|
||||
ShmemBackendArray = param->ShmemBackendArray;
|
||||
|
||||
#ifndef HAVE_SPINLOCKS
|
||||
|
||||
Reference in New Issue
Block a user