MCPcopy
hub / github.com/uber/aresdb / NewPeerDataNodeServer

Function NewPeerDataNodeServer

datanode/bootstrap/bootstrap_server.go:76–83  ·  view source on GitHub ↗
(metaStore common.MetaStore, diskStore diskstore.DiskStore)

Source from the content-addressed store, hash-verified

74}
75
76func NewPeerDataNodeServer(metaStore common.MetaStore, diskStore diskstore.DiskStore) pb.PeerDataNodeServer {
77 return &PeerDataNodeServerImpl{
78 metaStore: metaStore,
79 diskStore: diskStore,
80 sessions: make(map[int64]*sessionInfo),
81 tableShardSessions: make(map[tableShardPair][]int64),
82 }
83}
84
85// AcquireToken is to check if any bootstrap is running in the table/shard
86// if no bootstrap session is running on the table/shard, it will increase the token count, and return true

Callers 5

startFunction · 0.92
NewDataNodeFunction · 0.92
TestFileTransferFunction · 0.85
BenchmarkFileTransferFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestFileTransferFunction · 0.68
BenchmarkFileTransferFunction · 0.68