diff options
| author | Pavan Deolasee | 2015-12-09 07:23:40 +0000 |
|---|---|---|
| committer | Pavan Deolasee | 2015-12-09 07:23:40 +0000 |
| commit | 1db1ebd18c586bc9967b45ab7d70005876fb807a (patch) | |
| tree | cee10b7681aa3837d36283c3e0d2c840edee5936 /src/include/postmaster | |
| parent | 1e0c4f448331ef92460d42ea71c3a28c42a18ed3 (diff) | |
Introduce a cluster monitor lock to avoid a race condition between spanshot
fetch and xmin reporting
Diffstat (limited to 'src/include/postmaster')
| -rw-r--r-- | src/include/postmaster/clustermon.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/postmaster/clustermon.h b/src/include/postmaster/clustermon.h index 0c97fa9fdd..2cd0aefc01 100644 --- a/src/include/postmaster/clustermon.h +++ b/src/include/postmaster/clustermon.h @@ -20,6 +20,7 @@ typedef struct { slock_t mutex; GlobalTransactionId reported_recent_global_xmin; + GlobalTransactionId reporting_recent_global_xmin; GlobalTransactionId gtm_recent_global_xmin; } ClusterMonitorCtlData; @@ -32,6 +33,7 @@ extern bool IsClusterMonitorProcess(void); extern int StartClusterMonitor(void); GlobalTransactionId ClusterMonitorGetGlobalXmin(void); void ClusterMonitorSetGlobalXmin(GlobalTransactionId xmin); +GlobalTransactionId ClusterMonitorGetReportingXmin(void); #ifdef EXEC_BACKEND extern void ClusterMonitorIAm(void); |
