Skip to content

Commit

Permalink
fix for review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-hx committed Nov 22, 2023
1 parent b9d20f4 commit bd6a43a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Snowflake.Data/Core/QueryContextCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,13 @@ public ResponseQueryContext GetQueryContextResponse()
{
ResponseQueryContext rspQCC = new ResponseQueryContext();
rspQCC.Entries = new List<ResponseQueryContextElement>();
foreach (QueryContextElement elem in _cacheSet)
lock (_qccLock)
{
ResponseQueryContextElement rspElem = new ResponseQueryContextElement(elem);
rspQCC.Entries.Add(rspElem);
foreach (QueryContextElement elem in _cacheSet)
{
ResponseQueryContextElement rspElem = new ResponseQueryContextElement(elem);
rspQCC.Entries.Add(rspElem);
}
}

return rspQCC;
Expand Down

0 comments on commit bd6a43a

Please sign in to comment.