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

Method getBucketSpec

rest/utilities_testing.go:2457–2461  ·  view source on GitHub ↗
(dbName string)

Source from the content-addressed store, hash-verified

2455}
2456
2457func (sc *ServerContext) getBucketSpec(dbName string) base.BucketSpec {
2458 sc._databasesLock.RLock()
2459 defer sc._databasesLock.RUnlock()
2460 return sc._databases[dbName].BucketSpec
2461}
2462
2463func (sc *ServerContext) suspendDatabase(t *testing.T, ctx context.Context, dbName string) error {
2464 sc._databasesLock.Lock()

Calls 2

RLockMethod · 0.80
RUnlockMethod · 0.80