Closed
Description
Component(s)
pdata
What happened?
Describe the bug
If m
and dst
are equal and not empty, m.MoveTo(dst)
results in empty maps dst
and m
.
Code:
opentelemetry-collector/pdata/pcommon/map.go
Line 248 in d79ffd3
Expectation
MoveTo()
should be a no-op if m
and dst
or the underlying internal maps are equal (as in "using same memory region").
Collector version
main branch
Environment information
No response
OpenTelemetry Collector configuration
Log output
Additional context
No response