Add disable indexing to core object

This commit is contained in:
Jeff Mitchell 2018-10-23 15:04:36 -04:00
parent a979f49cd7
commit 8a274fba51
1 changed files with 3 additions and 0 deletions

View File

@ -392,6 +392,8 @@ type Core struct {
// perf standby
disablePerfStandby bool
disableIndexing bool
licensingStopCh chan struct{}
// Stores loggers so we can reset the level
@ -565,6 +567,7 @@ func NewCore(conf *CoreConfig) (*Core, error) {
keepHALockOnStepDown: new(uint32),
replicationFailure: new(uint32),
disablePerfStandby: true,
disableIndexing: conf.DisableIndexing,
activeContextCancelFunc: new(atomic.Value),
allLoggers: conf.AllLoggers,
}