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

Method GetDbVersion

rest/server_context.go:1137–1145  ·  view source on GitHub ↗
(dbName string)

Source from the content-addressed store, hash-verified

1135}
1136
1137func (sc *ServerContext) GetDbVersion(dbName string) string {
1138 sc._databasesLock.RLock()
1139 defer sc._databasesLock.RUnlock()
1140 currentDbConfig, ok := sc._dbConfigs[dbName]
1141 if !ok {
1142 return ""
1143 }
1144 return currentDbConfig.Version
1145}
1146
1147// getJavascriptTimeout returns the duration javascript functions can run.
1148func getJavascriptTimeout(config *DbConfig) time.Duration {

Calls 2

RLockMethod · 0.80
RUnlockMethod · 0.80