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

Method fetchDatabase

rest/config.go:1807–1812  ·  view source on GitHub ↗
(ctx context.Context, dbName string)

Source from the content-addressed store, hash-verified

1805}
1806
1807func (sc *ServerContext) fetchDatabase(ctx context.Context, dbName string) (found bool, dbConfig *DatabaseConfig, err error) {
1808 // fetch will update the databses
1809 sc._databasesLock.Lock()
1810 defer sc._databasesLock.Unlock()
1811 return sc._fetchDatabase(ctx, dbName)
1812}
1813
1814func (sc *ServerContext) _fetchDatabaseFromBucket(ctx context.Context, bucket string, dbName string) (found bool, cnf DatabaseConfig, err error) {
1815

Calls 3

_fetchDatabaseMethod · 0.95
LockMethod · 0.45
UnlockMethod · 0.45