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

Method ForceDbConfigsReload

rest/utilities_testing.go:2734–2737  ·  view source on GitHub ↗

ForceDbConfigsReload forces the reload db config from bucket process (like the ConfigUpdate background process)

(t *testing.T, ctx context.Context)

Source from the content-addressed store, hash-verified

2732
2733// ForceDbConfigsReload forces the reload db config from bucket process (like the ConfigUpdate background process)
2734func (sc *ServerContext) ForceDbConfigsReload(t *testing.T, ctx context.Context) {
2735 _, err := sc.fetchAndLoadConfigs(ctx, false)
2736 require.NoError(t, err)
2737}
2738
2739// AllInvalidDatabaseNames returns the names of all the databases that have invalid configs. Testing only since this locks the database context.
2740func (sc *ServerContext) AllInvalidDatabaseNames(_ *testing.T) []string {

Calls 1

fetchAndLoadConfigsMethod · 0.95