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

Method SetContextLogID

rest/server_context.go:2285–2292  ·  view source on GitHub ↗
(parent context.Context, id string)

Source from the content-addressed store, hash-verified

2283}
2284
2285func (sc *ServerContext) SetContextLogID(parent context.Context, id string) context.Context {
2286 if sc != nil {
2287 sc.LogContextID = id
2288 // ServerLogContext is separate from standard LogContext, so this does not reset the log context
2289 return base.LogContextWith(parent, &base.ServerLogContext{LogContextID: sc.LogContextID})
2290 }
2291 return parent
2292}
2293
2294// getTotalMemory returns the total memory available on the system. If a cgroup is detected, it will use the cgroup memory max.
2295func getTotalMemory(ctx context.Context) uint64 {

Callers 1

TestGroupIDReplicationsFunction · 0.80

Calls 1

LogContextWithFunction · 0.92

Tested by 1

TestGroupIDReplicationsFunction · 0.64