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

Method suspendDatabase

rest/utilities_testing.go:2463–2468  ·  view source on GitHub ↗
(t *testing.T, ctx context.Context, dbName string)

Source from the content-addressed store, hash-verified

2461}
2462
2463func (sc *ServerContext) suspendDatabase(t *testing.T, ctx context.Context, dbName string) error {
2464 sc._databasesLock.Lock()
2465 defer sc._databasesLock.Unlock()
2466
2467 return sc._suspendDatabase(ctx, dbName)
2468}
2469
2470// getRESTkeyspace returns a keyspace for REST URIs
2471func getRESTKeyspace(_ testing.TB, dbName string, collection *db.DatabaseCollection) string {

Calls 3

_suspendDatabaseMethod · 0.95
LockMethod · 0.45
UnlockMethod · 0.45