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

Method unsuspendDatabase

rest/server_context.go:1724–1729  ·  view source on GitHub ↗
(ctx context.Context, dbName string)

Source from the content-addressed store, hash-verified

1722}
1723
1724func (sc *ServerContext) unsuspendDatabase(ctx context.Context, dbName string) (*db.DatabaseContext, error) {
1725 sc._databasesLock.Lock()
1726 defer sc._databasesLock.Unlock()
1727
1728 return sc._unsuspendDatabase(ctx, dbName)
1729}
1730
1731func (sc *ServerContext) _unsuspendDatabase(ctx context.Context, dbName string) (*db.DatabaseContext, error) {
1732 dbCtx := sc._databases[dbName]

Callers 3

GetInactiveDatabaseMethod · 0.95
TestSuspendingFlagsFunction · 0.80

Calls 3

_unsuspendDatabaseMethod · 0.95
LockMethod · 0.45
UnlockMethod · 0.45

Tested by 2

TestSuspendingFlagsFunction · 0.64