diff options
Diffstat (limited to 'weed/topology/topology.go')
| -rw-r--r-- | weed/topology/topology.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/topology/topology.go b/weed/topology/topology.go index 1c5633e95..27d22ee7e 100644 --- a/weed/topology/topology.go +++ b/weed/topology/topology.go @@ -116,6 +116,9 @@ func (t *Topology) GetVolumeLayout(collectionName string, rp *storage.ReplicaPla func (t *Topology) FindCollection(collectionName string) (*Collection, bool) { c, hasCollection := t.collectionMap.Find(collectionName) + if !hasCollection { + return nil, false + } return c.(*Collection), hasCollection } |
