Skip to content
Merged
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
8 changes: 8 additions & 0 deletions grpc/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,14 @@ func NewClient(ctx context.Context, backupDir string, mdbConnOpts ConnectionOpti
return nil, errors.Wrap(err, "Cannot get node type")
}

bi, err := mdbSession.BuildInfo()
if err != nil {
return nil, errors.Wrapf(err, "Cannot get build info")
}
if !bi.VersionAtLeast(3, 4) {
return nil, fmt.Errorf("You need at least MongoDB version 3.4 to run this tool")
}

var replicasetName, replicasetID string

if nodeType != pb.NodeType_MONGOS {
Expand Down