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

Method Disable

base/log_keys.go:116–119  ·  view source on GitHub ↗

Disable will disable the given logKey in keyMask.

(logKey LogKey)

Source from the content-addressed store, hash-verified

114
115// Disable will disable the given logKey in keyMask.
116func (keyMask *LogKeyMask) Disable(logKey LogKey) {
117 val := atomic.LoadUint64((*uint64)(keyMask))
118 atomic.StoreUint64((*uint64)(keyMask), val & ^logKey.KeyMaskValue())
119}
120
121// Set will override the keyMask with the given logKeyMask.
122func (keyMask *LogKeyMask) Set(logKeyMask *LogKeyMask) {

Callers 8

TestLogKeyConcurrencyFunction · 0.95
initFunction · 0.80
UpdateLogKeysFunction · 0.80
TestLogKeyFunction · 0.80
BenchmarkToggleLogKeysFunction · 0.80
initFunction · 0.80
initFunction · 0.80

Calls 1

KeyMaskValueMethod · 0.80

Tested by 7

TestLogKeyConcurrencyFunction · 0.76
initFunction · 0.64
TestLogKeyFunction · 0.64
BenchmarkToggleLogKeysFunction · 0.64
initFunction · 0.64
initFunction · 0.64