Skip to content

Commit 1a43c3c

Browse files
committed
[#9595] Improve async state propagation in NonSampling state
1 parent 6354e06 commit 1a43c3c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

profiler/src/main/java/com/navercorp/pinpoint/profiler/context/DefaultCloseListener.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ public void close(long endTime) {
3030

3131

3232
private void recordUriTemplate(long afterTime) {
33-
if (uriStatStorage == null) {
33+
final UriStatStorage copy = uriStatStorage;
34+
if (copy == null) {
3435
return;
3536
}
3637

@@ -39,7 +40,7 @@ private void recordUriTemplate(long afterTime) {
3940
long traceStartTime = traceRoot.getTraceStartTime();
4041

4142
boolean status = getStatus(shared.getErrorCode());
42-
uriStatStorage.store(uriTemplate, status, traceStartTime, afterTime);
43+
copy.store(uriTemplate, status, traceStartTime, afterTime);
4344
}
4445

4546
private boolean getStatus(int errorCode) {

0 commit comments

Comments
 (0)