Documentation
¶
Index ¶
- Constants
- Variables
- func AddRpcClient(zoneid int, ip string)
- func AddScanner(zoneid, shardid, nodeid int, ip string)
- func AddShardInfo(zoneid, shardid, nodeid int, ip string)
- func CloseConnect()
- func ClosePatchDb()
- func Collect(file string, startShardid int, stopShardid int, skip int, driver bool)
- func DoPatch(namespace string) int
- func GenRemoteAddr(ip string, zoneid int) string
- func GetVersionFromDb(key []byte, zoneid int) (data []byte, valLen int, msg string)
- func GetVersionFromServers(key []byte, addr string, numZones int)
- func InitPatch(cfg *config.DbScan)
- func InitPatchDb(rootPath string, cfg *config.DbScan, readOnly bool)
- func IsCancel() bool
- func IsLocalAddress(ip string, zoneid int) bool
- func IsValidAddr(addr string) bool
- func LockSession() (bool, string)
- func PingDrivers(cmd int, zoneid, startid, stopid int)
- func PingServers(cmd int, startid int, stopid int, addr ...string) bool
- func PingServersByZone(cmd int, zoneid int, addr string, ns []byte) bool
- func RefreshLock(addr string)
- func RelayDelete(ns []byte, key []byte, rec *db.Record) error
- func ResetScanners(startid, stopid int) bool
- func SetCancel()
- func SetListenPort(port int, b bool)
- func ShardRangesOverlap(startid, stopid int) bool
- func StartListener() chan CmdRequest
- func UnlockSession(addr string)
- func UpdatePatch(key, value []byte) error
- type ClusterConfig
- type ClusterMap
- type CmdConfig
- type CmdLine
- type CmdNamespaceReply
- type CmdNamespaceRequest
- type CmdReply
- type CmdRequest
- type CmdUpdatePatch
- type Collector
- type KeyPrefix
- type NSMap
- type Remote
- type RemoteMap
- type Request
- type RpcClient
- type Scanner
- type ScannerMap
- type ShardInfo
- type ShardMap
Constants ¶
View Source
const ( MAX_RANGES = 256 CHAN_LEN = 4 )
View Source
const ( Idle = iota Running Finished )
Variables ¶
View Source
var ( E9 = uint64(time.Second) TEST_PATCH = "__test_patch" )
Functions ¶
func AddRpcClient ¶
func AddScanner ¶
func AddShardInfo ¶
func CloseConnect ¶
func CloseConnect()
func ClosePatchDb ¶
func ClosePatchDb()
func GenRemoteAddr ¶
func GetVersionFromDb ¶
func GetVersionFromServers ¶
func InitPatchDb ¶
Called by dbscanserv
func IsLocalAddress ¶
func IsValidAddr ¶
func LockSession ¶
func PingDrivers ¶
func RefreshLock ¶
func RefreshLock(addr string)
func RelayDelete ¶
Used by storageserv Bump Version Keep same CreationTime Clear payload key is recordId.GetKey()
func ResetScanners ¶
func SetListenPort ¶
func ShardRangesOverlap ¶
Overlap with the shard range being scanned.
func UnlockSession ¶
func UnlockSession(addr string)
func UpdatePatch ¶
Types ¶
type ClusterConfig ¶
type ClusterMap ¶
type ClusterMap struct { ClusterConfig cluster.Cluster // contains filtered or unexported fields }
func InitRemoteMap ¶
func InitRemoteMap(file string) *ClusterMap
func InitScanners ¶
func InitScanners(file string, readOnly bool) *ClusterMap
func (*ClusterMap) GetLocalShardList ¶
func (*ClusterMap) GetNumZones ¶
func (c *ClusterMap) GetNumZones() int
type CmdLine ¶
type CmdLine struct {
// contains filtered or unexported fields
}
func NewCmdLine ¶
func (*CmdLine) HandleCommand ¶
func (c *CmdLine) HandleCommand()
type CmdNamespaceReply ¶
type CmdNamespaceRequest ¶
type CmdReply ¶
type CmdRequest ¶
type CmdUpdatePatch ¶
type Remote ¶
type Remote int
func (*Remote) NamespaceService ¶
func (r *Remote) NamespaceService(req CmdNamespaceRequest, reply *CmdNamespaceReply) error
func (*Remote) UpdatePatch ¶
func (r *Remote) UpdatePatch(req CmdUpdatePatch, reply *CmdReply) error
type RpcClient ¶
type RpcClient struct {
// contains filtered or unexported fields
}
func GetRpcClient ¶
func NewRpcClient ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
type ShardInfo ¶
type ShardInfo struct {
// contains filtered or unexported fields
}
func GetShardInfo ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.