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

Commit2cfd624

Browse files
committed
Fix session auth reset handling.
Fixes rowsecurity test.
1 parenta378c06 commit2cfd624

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

‎multimaster.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3646,6 +3646,10 @@ static void MtmGucSet(VariableSetStmt *stmt, const char *queryStr)
36463646

36473647
caseVAR_RESET:
36483648
{
3649+
if (strcmp(stmt->name,"session_authorization")==0)
3650+
{
3651+
hash_search(MtmGucHash,"role",HASH_REMOVE,NULL);
3652+
}
36493653
key=pstrdup(stmt->name);
36503654
hash_search(MtmGucHash,key,HASH_REMOVE,NULL);
36513655
}
@@ -3674,11 +3678,6 @@ static void MtmGucDiscard(DiscardStmt *stmt)
36743678
}
36753679
}
36763680

3677-
staticvoidMtmGucClear(void)
3678-
{
3679-
3680-
}
3681-
36823681
staticchar*MtmGucSerialize(void)
36833682
{
36843683
HASH_SEQ_STATUSstatus;
@@ -3868,9 +3867,6 @@ static void MtmProcessUtility(Node *parsetree, const char *queryString,
38683867
if (stmt->kind==VAR_SET_MULTI)
38693868
skipCommand= true;
38703869

3871-
if (stmt->kind==VAR_RESET&&strcmp(stmt->name,"session_authorization")==0)
3872-
MtmGucClear();
3873-
38743870
if (!IsTransactionBlock())
38753871
{
38763872
skipCommand= true;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp