diff --git a/src/tracing/node_trace_buffer.cc b/src/tracing/node_trace_buffer.cc index 6e552d659ad6a6..70a0ad4b311610 100644 --- a/src/tracing/node_trace_buffer.cc +++ b/src/tracing/node_trace_buffer.cc @@ -88,7 +88,7 @@ void InternalTraceBuffer::ExtractHandle( NodeTraceBuffer::NodeTraceBuffer(size_t max_chunks, Agent* agent, uv_loop_t* tracing_loop) - : tracing_loop_(tracing_loop), agent_(agent), + : tracing_loop_(tracing_loop), buffer1_(max_chunks, 0, agent), buffer2_(max_chunks, 1, agent) { current_buf_.store(&buffer1_); diff --git a/src/tracing/node_trace_buffer.h b/src/tracing/node_trace_buffer.h index f08e6a69da2104..b59ae4f0a0e4ef 100644 --- a/src/tracing/node_trace_buffer.h +++ b/src/tracing/node_trace_buffer.h @@ -72,7 +72,6 @@ class NodeTraceBuffer : public TraceBuffer { Mutex exit_mutex_; // Used to wait until async handles have been closed. ConditionVariable exit_cond_; - Agent* agent_; std::atomic current_buf_; InternalTraceBuffer buffer1_; InternalTraceBuffer buffer2_;