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

Method Enable

base/log_keys.go:110–113  ·  view source on GitHub ↗

Enable will enable the given logKey in keyMask.

(logKey LogKey)

Source from the content-addressed store, hash-verified

108
109// Enable will enable the given logKey in keyMask.
110func (keyMask *LogKeyMask) Enable(logKey LogKey) {
111 val := atomic.LoadUint64((*uint64)(keyMask))
112 atomic.StoreUint64((*uint64)(keyMask), val|logKey.KeyMaskValue())
113}
114
115// Disable will disable the given logKey in keyMask.
116func (keyMask *LogKeyMask) Disable(logKey LogKey) {

Callers 7

logKeyMaskFunction · 0.95
TestLogKeyConcurrencyFunction · 0.95
ToLogKeyFunction · 0.80
UpdateLogKeysFunction · 0.80
TestLogKeyFunction · 0.80
BenchmarkToggleLogKeysFunction · 0.80

Calls 1

KeyMaskValueMethod · 0.80

Tested by 4

TestLogKeyConcurrencyFunction · 0.76
TestLogKeyFunction · 0.64
BenchmarkToggleLogKeysFunction · 0.64