Skip to content

Commit ce491b4

Browse files
committed
Revert "Make FieldResolver stack thread-safe"
This reverts commit 1003c19.
1 parent 1003c19 commit ce491b4

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Diff for: src/Nest/CommonAbstractions/Infer/Field/FieldResolver.cs

+1-7
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,7 @@ public class FieldResolver : ExpressionVisitor
1919
private readonly ConcurrentDictionary<Field, string> Fields = new ConcurrentDictionary<Field, string>();
2020
private readonly ConcurrentDictionary<PropertyName, string> Properties = new ConcurrentDictionary<PropertyName, string>();
2121

22-
private object _lock = new object();
23-
private Stack<string> _stack;
24-
protected Stack<string> Stack
25-
{
26-
get { lock(_lock) { return _stack; } }
27-
set { lock(_lock) { _stack = value; } }
28-
}
22+
protected Stack<string> Stack { get; set;}
2923

3024
public FieldResolver(IConnectionSettingsValues settings)
3125
{

0 commit comments

Comments
 (0)