Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release-20.1: server: Resolve default engine type in testserver #49377

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions pkg/server/testserver.go
Expand Up @@ -42,6 +42,7 @@ import (
"github.com/cockroachdb/cockroach/pkg/sql/sqlbase"
"github.com/cockroachdb/cockroach/pkg/sqlmigrations"
"github.com/cockroachdb/cockroach/pkg/storage"
"github.com/cockroachdb/cockroach/pkg/storage/enginepb"
"github.com/cockroachdb/cockroach/pkg/ts"
"github.com/cockroachdb/cockroach/pkg/util"
"github.com/cockroachdb/cockroach/pkg/util/hlc"
Expand All @@ -68,6 +69,10 @@ func makeTestConfig(st *cluster.Settings) Config {

// Configure test storage engine.
cfg.StorageEngine = storage.DefaultStorageEngine
// Resolve the storage engine to a specific type if it's the default value.
if cfg.StorageEngine == enginepb.EngineTypeDefault {
cfg.StorageEngine = enginepb.EngineTypeRocksDB
}

// Configure the default in-memory temp storage for all tests unless
// otherwise configured.
Expand Down