MCPcopy Create free account
hub / github.com/uber/aresdb / getSession

Method getSession

datanode/bootstrap/bootstrap_server.go:589–598  ·  view source on GitHub ↗

retrieve session info using session id

(sessionID int64)

Source from the content-addressed store, hash-verified

587
588// retrieve session info using session id
589func (p *PeerDataNodeServerImpl) getSession(sessionID int64) (*sessionInfo, error) {
590 p.RLock()
591 defer p.RUnlock()
592
593 session, ok := p.sessions[sessionID]
594 if !ok {
595 return nil, errInvalidSessionID
596 }
597 return session, nil
598}
599
600// check if request table/shard is valid
601func (p *PeerDataNodeServerImpl) validateTable(tableName string, shardID uint32) error {

Callers 3

KeepAliveMethod · 0.95
validateSessionSourceMethod · 0.95
validateRequestMethod · 0.95

Calls 2

RLockMethod · 0.65
RUnlockMethod · 0.65

Tested by

no test coverage detected