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

Method GetLastAccessTimeForIndex

query_supervisor.go:107–116  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

105}
106
107func (qs *QuerySupervisor) GetLastAccessTimeForIndex(name string) string {
108 qs.m.RLock()
109 defer qs.m.RUnlock()
110
111 if t, exists := qs.indexAccessTimes[name]; exists {
112 return t.Format("2006-01-02T15:04:05.000-07:00")
113 }
114
115 return ""
116}
117
118func (qs *QuerySupervisor) deleteEntryForIndex(name string) {
119 qs.m.Lock()

Callers 1

gatherIndexStatsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected