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

Commitb991096

Browse files
committed
clear GucBuffer on reset session
1 parentc431162 commitb991096

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

‎multimaster.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3133,6 +3133,15 @@ static char * MtmGUCBufferGet(void){
31333133
returnMtmGUCBuffer->data;
31343134
}
31353135

3136+
staticvoidMtmGUCBufferClear(void)
3137+
{
3138+
if (MtmGUCBufferAllocated)
3139+
{
3140+
resetStringInfo(MtmGUCBuffer);
3141+
MtmGUCBufferAppend("");
3142+
}
3143+
}
3144+
31363145
staticboolMtmProcessDDLCommand(charconst*queryString)
31373146
{
31383147
char*queryWithContext;
@@ -3298,6 +3307,9 @@ static void MtmProcessUtility(Node *parsetree, const char *queryString,
32983307
if (stmt->kind==VAR_SET_MULTI)
32993308
skipCommand= true;
33003309

3310+
if (stmt->kind==VAR_RESET&&strcmp(stmt->name,"session_authorization")==0)
3311+
MtmGUCBufferClear();
3312+
33013313
if (!IsTransactionBlock())
33023314
{
33033315
skipCommand= true;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp