mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-17 02:12:56 +00:00
Fix cleanup of min_request_lsn on backend exit
This commit is contained in:
@@ -1922,11 +1922,8 @@ nm_to_string(NeonMessage *msg)
|
||||
static void
|
||||
reset_min_request_lsn(int code, Datum arg)
|
||||
{
|
||||
#if PG_MAJORVERSION_NUM < 15
|
||||
if (!MyProc)
|
||||
return;
|
||||
#endif
|
||||
MIN_BACKEND_REQUEST_LSN = InvalidXLogRecPtr;
|
||||
if (MyProcNumber != -1)
|
||||
MIN_BACKEND_REQUEST_LSN = InvalidXLogRecPtr;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -22,6 +22,9 @@
|
||||
#include "neon_pgversioncompat.h"
|
||||
|
||||
neon_per_backend_counters *neon_per_backend_counters_shared;
|
||||
#if PG_MAJORVERSION_NUM < 17
|
||||
int MyProcNumber = -1;
|
||||
#endif
|
||||
|
||||
void
|
||||
NeonPerfCountersShmemRequest(void)
|
||||
|
||||
Reference in New Issue
Block a user