Merge pull request #576 from andyzhangx/fix-NodeGetVolumeStats-crash

fix: NodeGetVolumeStats crash
This commit is contained in:
Andy Zhang 2023-12-27 23:05:07 +08:00 committed by GitHub
commit 562c128c52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -277,7 +277,7 @@ func (ns *NodeServer) NodeGetVolumeStats(_ context.Context, req *csi.NodeGetVolu
}
// cache the volume stats per volume
ns.Driver.volStatsCache.Set(req.VolumeId, &resp)
ns.Driver.volStatsCache.Set(req.VolumeId, resp)
return &resp, err
}