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

Method GetConfigName

rest/config_manager.go:52–54  ·  view source on GitHub ↗

GetConfig fetches a database name for a given bucket and config group ID.

(ctx context.Context, bucketName, groupID, dbName string, configName *dbConfigNameOnly)

Source from the content-addressed store, hash-verified

50
51// GetConfig fetches a database name for a given bucket and config group ID.
52func (b *bootstrapContext) GetConfigName(ctx context.Context, bucketName, groupID, dbName string, configName *dbConfigNameOnly) (cas uint64, err error) {
53 return b.Connection.GetMetadataDocument(ctx, bucketName, PersistentConfigKey(ctx, groupID, dbName), configName)
54}
55
56// GetConfig fetches a database config for a given bucket and config group ID, along with the CAS of the config document.
57// GetConfig does *not* validate that config version matches registry version - operations requiring synchronization

Callers 1

bucketNameFromDbNameMethod · 0.80

Calls 2

PersistentConfigKeyFunction · 0.85
GetMetadataDocumentMethod · 0.65

Tested by

no test coverage detected