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

Commit2105d9e

Browse files
knizhnikkelvich
authored andcommitted
Fix spill to file threshold check
1 parentccac390 commit2105d9e

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

‎multimaster.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,8 @@ MtmAdjustOldestXid(TransactionId xid)
504504
MtmTransState*ts,*prev=NULL;
505505
inti;
506506

507+
returnFirstNormalTransactionId;
508+
507509
MtmLock(LW_EXCLUSIVE);
508510
ts= (MtmTransState*)hash_search(MtmXid2State,&xid,HASH_FIND,NULL);
509511
if (ts!=NULL&&ts->status==TRANSACTION_STATUS_COMMITTED) {

‎multimaster.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
#defineMULTIMASTER_ADMIN "mtm_admin"
4848

4949
#defineUSEC 1000000
50+
#defineMB (1024*1024)
5051

5152
#defineUSEC_TO_MSEC(t) ((t)/1000)
5253
#defineMSEC_TO_USEC(t) ((t)*1000)

‎pglogical_receiver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ pglogical_receiver_main(Datum main_arg)
449449
{
450450
stmt=copybuf+hdr_len;
451451

452-
if (buf.used >=MtmTransSpillThreshold) {
452+
if (buf.used >=MtmTransSpillThreshold*MB) {
453453
if (spill_file<0) {
454454
intfile_id;
455455
spill_file=MtmCreateSpillFile(nodeId,&file_id);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp