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

Function initNsServerCaching

ns_server.go:1003–1008  ·  view source on GitHub ↗
(mgr *cbgt.Manager)

Source from the content-addressed store, hash-verified

1001var runSourcePartitionSeqsOnce sync.Once
1002
1003func initNsServerCaching(mgr *cbgt.Manager) {
1004 runSourcePartitionSeqsOnce.Do(func() {
1005 go RunSourcePartitionSeqs(mgr.Options(), nil)
1006 go RunRecentInfoCache(mgr)
1007 })
1008}
1009
1010func GetSourcePartitionSeqs(sourceSpec SourceSpec) map[string]cbgt.UUIDSeq {
1011 mapSourcePartitionSeqsM.Lock()

Callers 4

ServeHTTPMethod · 0.85
ServeHTTPMethod · 0.85
ServeHTTPMethod · 0.85
ServeHTTPMethod · 0.85

Calls 2

RunSourcePartitionSeqsFunction · 0.85
RunRecentInfoCacheFunction · 0.85

Tested by

no test coverage detected