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

Commitf3947bf

Browse files
author
Andrei Kruchinin
committed
Set worker status to Idle after applying
1 parentc68af32 commitf3947bf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎src/ddl.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1629,7 +1629,7 @@ MtmDDLResetApplyState()
16291629
DDLApplyInProgress= false;
16301630
/* the memory it points to is about to go away */
16311631
debug_query_string=NULL;
1632-
pgstat_report_activity(STATE_RUNNING,NULL);
1632+
pgstat_report_activity(STATE_IDLE,"");
16331633
}
16341634

16351635

‎src/pglogical_apply.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ process_remote_message(StringInfo s, MtmReceiverWorkerContext *rwctx)
385385
MtmApplyDDLMessage(messageBody, false);
386386
CommitTransactionCommand();
387387

388-
pgstat_report_activity(STATE_RUNNING,NULL);
388+
pgstat_report_activity(STATE_IDLE,"");
389389
standalone= true;
390390
break;
391391
}
@@ -396,7 +396,7 @@ process_remote_message(StringInfo s, MtmReceiverWorkerContext *rwctx)
396396
pfree(activity);
397397
mtm_log(MtmApplyMessage,"executing tx DDL message %s",messageBody);
398398
MtmApplyDDLMessage(messageBody, true);
399-
pgstat_report_activity(STATE_RUNNING,NULL);
399+
pgstat_report_activity(STATE_IDLE,"");
400400
break;
401401
}
402402
case'L':

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp