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

Commit83b4f19

Browse files
knizhnikkelvich
authored andcommitted
Add asserts to debug no transaction in progress
1 parent6836421 commit83b4f19

File tree

9 files changed

+420
-215
lines changed

9 files changed

+420
-215
lines changed

‎arbiter.c

Lines changed: 143 additions & 100 deletions
Large diffs are not rendered by default.

‎bgwpool.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
#include"bgwpool.h"
1212

13+
boolMtmIsLogicalReceiver;
14+
1315
typedefstruct
1416
{
1517
BgwPoolConstructorconstructor;
@@ -24,6 +26,8 @@ static void BgwPoolMainLoop(Datum arg)
2426
intsize;
2527
void*work;
2628

29+
MtmIsLogicalReceiver= true;
30+
2731
BackgroundWorkerUnblockSignals();
2832
BackgroundWorkerInitializeConnection(pool->dbname,pool->dbuser);
2933

‎bgwpool.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ typedef uint64 timestamp_t;
1616
externtimestamp_tMtmGetSystemTime(void);/* non-adjusted current system time */
1717
externtimestamp_tMtmGetCurrentTime(void);/* adjusted current system time */
1818

19+
externboolMtmIsLogicalReceiver;
20+
1921
typedefstruct
2022
{
2123
BgwPoolExecutorexecutor;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp