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

Method InsertConfig

rest/config_manager.go:67–147  ·  view source on GitHub ↗

InsertConfig saves a new database config for a given bucket and config group ID. This is a three-step process: 1. getRegistryAndDatabase to enforce synchronization pre-update 2. Update the registry to add the config 3. Write the config

(ctx context.Context, bucketName, groupID string, config *DatabaseConfig)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

automaticConfigUpgradeFunction · 0.95

Calls 13

addDatabaseLogContextMethod · 0.95
computeMetadataIDMethod · 0.95
setGatewayRegistryMethod · 0.95
InfofCtxFunction · 0.92
DebugfCtxFunction · 0.92
IsCasMismatchFunction · 0.92
PersistentConfigKeyFunction · 0.85
upsertDatabaseConfigMethod · 0.80
DoneMethod · 0.80
ErrorfMethod · 0.80

Tested by

no test coverage detected