mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-11-21 03:13:05 +08:00
Fix caching of unsuccessful initialization of parser or configuration.
Per report from Listmail <lists@peufeu.com>
This commit is contained in:
parent
4dd2d9192d
commit
100beb0dea
@ -224,8 +224,8 @@ findcfg(Oid id)
|
||||
CList.reallen = reallen;
|
||||
CList.list = tmp;
|
||||
}
|
||||
init_cfg(id, &(CList.list[CList.len]) );
|
||||
CList.last_cfg = &(CList.list[CList.len]);
|
||||
init_cfg(id, CList.last_cfg);
|
||||
CList.len++;
|
||||
qsort(CList.list, CList.len, sizeof(TSCfgInfo), comparecfg);
|
||||
return findcfg(id); /* qsort changed order!! */ ;
|
||||
|
@ -127,8 +127,8 @@ findprs(Oid id)
|
||||
PList.reallen = reallen;
|
||||
PList.list = tmp;
|
||||
}
|
||||
init_prs(id, &(PList.list[PList.len]) );
|
||||
PList.last_prs = &(PList.list[PList.len]);
|
||||
init_prs(id, PList.last_prs);
|
||||
PList.len++;
|
||||
qsort(PList.list, PList.len, sizeof(WParserInfo), compareprs);
|
||||
return findprs(id); /* qsort changed order!! */ ;
|
||||
|
Loading…
Reference in New Issue
Block a user