Content-Length: 297636 | pFad | http://github.com/postgrespro/postgres_cluster/commit/5c465aaf9aad9d030f7d252ee216c8a148ccfb63

A4 Fix mistyping · postgrespro/postgres_cluster@5c465aa · GitHub
Skip to content

Commit 5c465aa

Browse files
committed
Fix mistyping
1 parent da12502 commit 5c465aa

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

contrib/mmts/arbiter.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,8 +606,13 @@ static void MtmAppendBuffer(MtmBuffer* txBuffer, TransactionId xid, int node, Mt
606606
{
607607
MtmBuffer* buf = &txBuffer[node];
608608
if (buf->used == buf->size) {
609-
buf->size = buf->size ? buf->size*2 : INIT_BUFFER_SIZE;
610-
buf->data = repalloc(buf->data, buf->size * sizeof(MtmArbiterMessage));
609+
if (buf->size == 0) {
610+
buf->size = INIT_BUFFER_SIZE;
611+
buf->data = palloc(buf->size * sizeof(MtmArbiterMessage));
612+
} else {
613+
buf->size *= 2;
614+
buf->data = repalloc(buf->data, buf->size * sizeof(MtmArbiterMessage));
615+
}
611616
}
612617
buf->data[buf->used].dxid = xid;
613618

contrib/mmts/multimaster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ static TransactionManager MtmTM = {
178178

179179
char const* const MtmNodeStatusMnem[] =
180180
{
181-
"Intialization",
181+
"Initialization",
182182
"Offline",
183183
"Connected",
184184
"Online",

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/5c465aaf9aad9d030f7d252ee216c8a148ccfb63

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy