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

Method ReloadDatabaseWithConfig

rest/server_context.go:571–575  ·  view source on GitHub ↗
(nonContextStruct base.NonCancellableContext, config DatabaseConfig)

Source from the content-addressed store, hash-verified

569}
570
571func (sc *ServerContext) ReloadDatabaseWithConfig(nonContextStruct base.NonCancellableContext, config DatabaseConfig) error {
572 sc._databasesLock.Lock()
573 defer sc._databasesLock.Unlock()
574 return sc._reloadDatabaseWithConfig(nonContextStruct.Ctx, config, true, false)
575}
576
577func (sc *ServerContext) _reloadDatabaseWithConfig(ctx context.Context, config DatabaseConfig, failFast bool, loadFromBucket bool) error {
578 sc._removeDatabase(ctx, config.Name)

Callers 1

handlePutDbConfigMethod · 0.80

Calls 3

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected