Fix cleanup of min_request_lsn on backend exit

This commit is contained in:
Konstantin Knizhnik
2025-07-26 15:33:43 +03:00
parent 06417f2ff9
commit b2a87b501f
2 changed files with 5 additions and 5 deletions

View File

@@ -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;
}
/*

View File

@@ -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)