MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / applyConfigs

Method applyConfigs

rest/config.go:2063–2067  ·  view source on GitHub ↗
(ctx context.Context, dbNameConfigs map[string]DatabaseConfig)

Source from the content-addressed store, hash-verified

2061}
2062
2063func (sc *ServerContext) applyConfigs(ctx context.Context, dbNameConfigs map[string]DatabaseConfig) (count int) {
2064 sc._databasesLock.Lock()
2065 defer sc._databasesLock.Unlock()
2066 return sc._applyConfigs(ctx, dbNameConfigs, false, false)
2067}
2068
2069// _applyConfig loads the given database, failFast=true will not attempt to retry connecting/loading
2070func (sc *ServerContext) _applyConfig(nonContextStruct base.NonCancellableContext, cnf DatabaseConfig, failFast, isInitialStartup, loadFromBucket bool) (applied bool, err error) {

Callers 1

handleGetDbConfigMethod · 0.80

Calls 3

_applyConfigsMethod · 0.95
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected