Skip to content

Commit

Permalink
MB-43580: Avoid running planner if there are no indexes to restore
Browse files Browse the repository at this point in the history
Change-Id: I2ab3ea72b86c5478859cc367b1df311fb7a7e068
  • Loading branch information
amithk committed Mar 12, 2021
1 parent d9638e6 commit 2aa8707
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions secondary/manager/restore.go
Expand Up @@ -116,6 +116,11 @@ func (m *RestoreContext) computeIndexLayout() (map[string][]*common.IndexDefn, e
return nil, err
}

if len(m.idxToRestore) == 0 && len(m.tokToRestore) == 0 {
logging.Infof("RestoreContext: nothing to restore")
return nil, nil
}

// associate indexer from image to current cluster
m.buildIndexerMapping()

Expand Down

0 comments on commit 2aa8707

Please sign in to comment.