diff options
author | Ayush Ranjan <ayushranjan@google.com> | 2020-12-09 11:02:35 -0800 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2020-12-09 15:55:12 -0800 |
commit | 45619ded38b9c9f24b2b7ade812fd903e09ac1b9 (patch) | |
tree | c68fade851417b19c610d491757865e93f12fb71 /test/benchmarks/tools/redis.go | |
parent | 50189b0d6f2401f842f63ae149de13b89b4c30f9 (diff) |
[netstack] Make tcpip.Error savable.
Earlier we could not save tcpip.Error objects in structs because upon restore
the constant's address changes in netstack's error translation map and
translating the error would panic because the map is based on the address of the
tcpip.Error instead of the error itself.
Now I made that translations map use the error message as key instead of the
address. Added relevant synchronization mechanisms to protect the structure
and initialize it upon restore.
PiperOrigin-RevId: 346590485
Diffstat (limited to 'test/benchmarks/tools/redis.go')
0 files changed, 0 insertions, 0 deletions