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

Method exists

rest/config.go:402–407  ·  view source on GitHub ↗
(dbname string)

Source from the content-addressed store, hash-verified

400}
401
402func (d *invalidDatabaseConfigs) exists(dbname string) (*invalidConfigInfo, bool) {
403 d.m.RLock()
404 defer d.m.RUnlock()
405 config, ok := d.dbNames[dbname]
406 return config, ok
407}
408
409func (d *invalidDatabaseConfigs) remove(dbname string) {
410 d.m.Lock()

Calls 2

RLockMethod · 0.80
RUnlockMethod · 0.80