MCPcopy Create free account
hub / github.com/couchbase/cbft / NewIndexStat

Function NewIndexStat

ns_server.go:196–202  ·  view source on GitHub ↗

NewIndexStat ensures that all index stats have the same shape and 0 values to prevent seeing N/A in ns_server UI

()

Source from the content-addressed store, hash-verified

194// have the same shape and 0 values to
195// prevent seeing N/A in ns_server UI
196func NewIndexStat() map[string]interface{} {
197 rv := make(map[string]interface{})
198 for _, key := range statkeys {
199 rv[key] = float64(0)
200 }
201 return rv
202}
203
204func getRecentInfo() *recentInfo {
205 return (*recentInfo)(atomic.LoadPointer(&lastRecentInfo))

Callers 1

gatherIndexStatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected