mirror of
https://github.com/moby/moby.git
synced 2026-08-07 16:41:50 +00:00
Revert "libnetwork/networkdb: use correct index in GetTableByNetwork"
This reverts commit d5c370dee6.
Signed-off-by: Rob Murray <rob.murray@docker.com>
This commit is contained in:
@@ -430,7 +430,7 @@ type TableElem struct {
|
||||
// returns a map of keys and values
|
||||
func (nDB *NetworkDB) GetTableByNetwork(tname, nid string) map[string]*TableElem {
|
||||
nDB.RLock()
|
||||
root := nDB.indexes[byTable].Root()
|
||||
root := nDB.indexes[byNetwork].Root()
|
||||
nDB.RUnlock()
|
||||
entries := make(map[string]*TableElem)
|
||||
root.WalkPrefix([]byte(fmt.Sprintf("/%s/%s", tname, nid)), func(k []byte, v *entry) bool {
|
||||
|
||||
Reference in New Issue
Block a user