From: Pavan Deolasee Date: Fri, 26 Oct 2018 08:41:19 +0000 (+0530) Subject: Provide enough space for knownXids array X-Git-Tag: XL_10_R1_1~20 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=92ed8ef5baecf042d97115af6a79514c8933611f;p=postgres-xl.git Provide enough space for knownXids array Commit be7777d2a9d8d70c931e80868f4f7e373f3f98f8 rearranged things so that the intial XID value is set appropriately in the GTM control file. But that seems to have caused problem with a standby setup and the array to hold knownXids is no longer enough. Hence make some adjustments there. This was stopping a standby from starting up correctly as observed during the tests. --- diff --git a/src/backend/storage/ipc/procarray.c b/src/backend/storage/ipc/procarray.c index 7e9cf57dfb..26afd15841 100644 --- a/src/backend/storage/ipc/procarray.c +++ b/src/backend/storage/ipc/procarray.c @@ -291,7 +291,7 @@ CreateSharedProcArray(void) procArray->numProcs = 0; procArray->maxProcs = PROCARRAY_MAXPROCS; procArray->maxKnownAssignedXids = TOTAL_MAX_CACHED_SUBXIDS + - CONTROL_INTERVAL; + CONTROL_INTERVAL + InitialGXIDValue_Default; procArray->numKnownAssignedXids = 0; procArray->tailKnownAssignedXids = 0; procArray->headKnownAssignedXids = 0;