MyThreadID = pthread_self();
MemoryContextInit();
- /* Backup the restore point */
- GTM_WriteRestorePoint();
-
/*
* The memory context is now set up.
* Add the thrinfo structure in the global array
GTM_MutexLockRelease(&control_lock);
}
+ /* Backup the restore point */
+ GTM_SetNeedBackup();
+ GTM_WriteRestorePoint();
+
if (Recovery_IsStandby())
{
if (!gtm_standby_register_self(NodeName, GTMPortNumber, GTMDataDir))
errmsg("could not close GTM configuration file \"%s\": %m",
conf_file)));
}
+ GTM_SetNeedBackup();
+ GTM_WriteRestorePoint();
return;
}