Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5c465aa

Browse files
committed
Fix mistyping
1 parentda12502 commit5c465aa

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
charconst*constMtmNodeStatusMnem[]=
180180
{
181-
"Intialization",
181+
"Initialization",
182182
"Offline",
183183
"Connected",
184184
"Online",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp