mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Ensure drivertable entries in joininfo is uptodate
The CopyTo function for joininfo is not copying the driver table entries which then is missing when the endpoint is re-read for the store cache. Signed-off-by: Jana Radhakrishnan <mrjana@docker.com>
This commit is contained in:
parent
8825f80d8c
commit
91ec1a2cf4
1 changed files with 2 additions and 0 deletions
|
@ -463,6 +463,8 @@ func (epj *endpointJoinInfo) CopyTo(dstEpj *endpointJoinInfo) error {
|
||||||
dstEpj.disableGatewayService = epj.disableGatewayService
|
dstEpj.disableGatewayService = epj.disableGatewayService
|
||||||
dstEpj.StaticRoutes = make([]*types.StaticRoute, len(epj.StaticRoutes))
|
dstEpj.StaticRoutes = make([]*types.StaticRoute, len(epj.StaticRoutes))
|
||||||
copy(dstEpj.StaticRoutes, epj.StaticRoutes)
|
copy(dstEpj.StaticRoutes, epj.StaticRoutes)
|
||||||
|
dstEpj.driverTableEntries = make([]*tableEntry, len(epj.driverTableEntries))
|
||||||
|
copy(dstEpj.driverTableEntries, epj.driverTableEntries)
|
||||||
dstEpj.gw = types.GetIPCopy(epj.gw)
|
dstEpj.gw = types.GetIPCopy(epj.gw)
|
||||||
dstEpj.gw = types.GetIPCopy(epj.gw6)
|
dstEpj.gw = types.GetIPCopy(epj.gw6)
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Add table
Reference in a new issue