mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-14 17:02:56 +00:00
Fix lack of GetWALInsertionTimeLine in PG14
This commit is contained in:
@@ -170,7 +170,11 @@ WalProposerMain(Datum main_arg)
|
||||
walprop_pg_load_libpqwalreceiver();
|
||||
|
||||
wp = WalProposerCreate(&walprop_config, walprop_pg);
|
||||
#if PG_MAJORVERSION_NUM < 15
|
||||
wp->localTimeLineID = ThisTimeLineID;
|
||||
#else
|
||||
wp->localTimeLineID = GetWALInsertionTimeLine();
|
||||
#endif
|
||||
wp->last_reconnect_attempt = walprop_pg_get_current_timestamp(wp);
|
||||
|
||||
walprop_pg_init_walsender();
|
||||
|
||||
Reference in New Issue
Block a user