Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions secondary/planner/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@ import (
"encoding/json"
"errors"
"fmt"
"github.com/couchbase/cbauth/service"
"github.com/couchbase/indexing/secondary/common"
"github.com/couchbase/indexing/secondary/logging"
"io/ioutil"
"math"
"math/rand"
"os"
"strconv"
"time"

"github.com/couchbase/cbauth/service"
"github.com/couchbase/indexing/secondary/common"
"github.com/couchbase/indexing/secondary/logging"
)

//////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -463,7 +464,7 @@ func execute(config *RunConfig, command CommandType, p *Plan, indexSpecs []*Inde
return plan(config, p, indexes)

} else if command == CommandRebalance || command == CommandSwap {
if plan == nil {
if p == nil {
return nil, nil, errors.New("missing argument: either workload or plan must be present")
}

Expand Down