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