mirror of
https://github.com/containerd/containerd.git
synced 2026-07-07 07:07:50 +00:00
If there are multiple goroutines calling `namespace.WithNamespace` on a ctx that already had namespace, there will be a data race when `withTTRPCNamespaceHeader` calling `MD.Set()`. So we have to copy the md before using it. Signed-off-by: Li Yuxuan <liyuxuan04@baidu.com>