Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/YXG520/MIT6.824-6.5840
/ functions
Functions
548 in github.com/YXG520/MIT6.824-6.5840
⨍
Functions
548
◇
Types & classes
106
↓ 2 callers
Function
nrand
()
src/kvraft/client.go:86
↓ 2 callers
Function
randstring
(n int)
src/shardctrler/config.go:16
↓ 2 callers
Function
randstring
(n int)
src/kvraft/config.go:22
↓ 2 callers
Function
randstring
(n int)
src/raft/config.go:26
↓ 2 callers
Method
rpcTotal
()
src/kvraft/config.go:396
↓ 2 callers
Method
rpcTotal
()
src/raft/config.go:408
↓ 2 callers
Method
set
(pos uint)
src/porcupine/bitset.go:29
↓ 2 callers
Function
spawn_clients_and_wait
spawn ncli clients and wait until they are all done
src/kvraft/test_test.go:116
↓ 2 callers
Method
tryApply
(msg *ApplyMsg)
src/raft/util.go:89
↓ 2 callers
Function
usage
()
src/main/diskvd.go:25
↓ 2 callers
Function
usage
()
src/main/lockc.go:11
↓ 1 callers
Method
AppendEntries
nextIndex常规收敛方法,经 go test -run 2B测试速度比优化后的算法慢5-10ss func (rf *Raft) AppendEntries2(targetServerId int, heart bool) { if rf.state != Leader { retur
src/raft/raft.go:405
↓ 1 callers
Method
CondInstallSnapshot
(lastIncludedTerm int, lastIncludedIndex int, snapshot []byte)
src/raft/raft.go:280
↓ 1 callers
Method
ConfigDetectedLoop
ConfigDetectedLoop 配置检测
src/shardkv/server.go:246
↓ 1 callers
Method
DisconnectClientUnlocked
caller should hold cfg.mu
src/shardctrler/config.go:212
↓ 1 callers
Method
DisconnectClientUnlocked
caller should hold cfg.mu
src/kvraft/config.go:243
↓ 1 callers
Method
EncodeValue
(value reflect.Value)
src/labgob/labgob.go:39
↓ 1 callers
Method
GetRaftStateSize
()
src/raft/persister.go:87
↓ 1 callers
Method
Leader
()
src/kvraft/config.go:329
↓ 1 callers
Method
LogSize
Maximum log size across all servers
src/raft/config.go:665
↓ 1 callers
Method
LongDelays
(yes bool)
src/labrpc/labrpc.go:199
↓ 1 callers
Method
LongReordering
(yes bool)
src/labrpc/labrpc.go:192
↓ 1 callers
Function
Make
the service or tester wants to create a Raft server. the ports of all the Raft servers (including this one) are in peers[]. this server's port is peer
src/raft/raft.go:755
↓ 1 callers
Function
MakeClerk
(servers []*labrpc.ClientEnd)
src/shardctrler/client.go:31
↓ 1 callers
Function
MakeClerk
(servers []*labrpc.ClientEnd)
src/kvraft/client.go:18
↓ 1 callers
Function
MakeClerk
MakeClerk the tester calls MakeClerk. ctrlers[] is needed to call shardctrler.MakeClerk(). make_end(servername) turns a server name from a UpConfig.
src/shardkv/client.go:55
↓ 1 callers
Function
MakeClerk
the tester calls MakeClerk. ctrlers[] is needed to call shardctrler.MakeClerk(). make_end(servername) turns a server name from a Config.Groups[gid][
src/shardkv_with_bug/client.go:56
↓ 1 callers
Method
MoveShard
(shardId int, GID int)
src/shardctrler/executeCmd.go:24
↓ 1 callers
Function
NewApplyHelper
(applyCh chan ApplyMsg, lastApplied int)
src/raft/util.go:57
↓ 1 callers
Function
NewLog
()
src/raft/log.go:18
↓ 1 callers
Function
NextValue
predict effect of Append(k, val) if old value is prev.
src/kvraft/test_test.go:133
↓ 1 callers
Method
PersistSnapShot
------------------------------------------------------持久化快照部分----------------------------------------------------- PersistSnapShot Snapshot get snapsh
src/shardkv/server.go:485
↓ 1 callers
Method
RebalanceShardsForJoin
(newGroups map[int][]string)
src/shardctrler/executeCmd.go:67
↓ 1 callers
Method
RebalanceShardsForLeave
(removedGIDs []int)
src/shardctrler/executeCmd.go:141
↓ 1 callers
Function
Register
(value interface{})
src/labgob/labgob.go:65
↓ 1 callers
Method
Save
Save both Raft state and K/V snapshot as a single atomic action, to help avoid them getting out of sync.
src/raft/persister.go:59
↓ 1 callers
Method
SaveRaftState
(state []byte)
src/raft/persister.go:51
↓ 1 callers
Method
SaveStateAndSnapshot
Save both Raft state and K/V snapshot as a single atomic action, to help avoid them getting out of sync.
src/raft/persister.go:80
↓ 1 callers
Method
ShutdownServer
Shutdown a server by isolating it
src/kvraft/config.go:259
↓ 1 callers
Method
StartCtrlerserver
(i int)
src/shardkv/config.go:270
↓ 1 callers
Method
StartCtrlerserver
(i int)
src/shardkv_with_bug/config.go:270
↓ 1 callers
Method
StartElection
()
src/raft/leader_election.go:13
↓ 1 callers
Function
StartKVServer
servers[] contains the ports of the set of servers that will cooperate via Raft to form the fault-tolerant key/value service. me is the index of the c
src/kvraft/server.go:54
↓ 1 callers
Function
StartServer
servers[] contains the ports of the set of servers that will cooperate via Raft to form the fault-tolerant shardctrler service. me is the index of the
src/shardctrler/server.go:367
↓ 1 callers
Function
StartServer
-------------------------------------------------初始化(Start)部分------------------------------------------------------ StartServer me is the index of the
src/shardkv/server.go:107
↓ 1 callers
Function
StartServer
servers[] contains the ports of the servers in this group. me is the index of the current server in servers[]. the k/v server should store snapshots
src/shardkv_with_bug/server.go:583
↓ 1 callers
Function
Visualize
(model Model, info linearizationInfo, output io.Writer)
src/porcupine/visualization.go:89
↓ 1 callers
Method
addShardHandler
(op Op)
src/shardkv/server.go:456
↓ 1 callers
Method
addShardHandler
(op Op)
src/shardkv_with_bug/reshard.go:42
↓ 1 callers
Method
allReceived
()
src/shardkv/server.go:572
↓ 1 callers
Method
allReceived
()
src/shardkv_with_bug/server.go:175
↓ 1 callers
Method
allSent
()
src/shardkv/server.go:562
↓ 1 callers
Method
allSent
()
src/shardkv_with_bug/server.go:161
↓ 1 callers
Method
applier
()
src/raft/util.go:74
↓ 1 callers
Method
applyMsgHandlerLoop
()
src/shardctrler/server.go:61
↓ 1 callers
Method
applyMsgHandlerLoop
()
src/kvraft/server.go:138
↓ 1 callers
Method
applyMsgHandlerLoop
------------------------------------------------------Loop部分-------------------------------------------------------- applyMsgHandlerLoop 处理applyCh发送过来
src/shardkv/server.go:147
↓ 1 callers
Method
applyMsgHandlerLoop
()
src/shardkv_with_bug/server.go:71
↓ 1 callers
Method
becomeCandidate
()
src/raft/leader_election.go:89
↓ 1 callers
Method
becomeLeader
()
src/raft/leader_election.go:96
↓ 1 callers
Function
cacheContains
(model Model, cache map[uint64][]cacheEntry, entry cacheEntry)
src/porcupine/checker.go:145
↓ 1 callers
Function
call
send an RPC request to the coordinator, wait for the response. usually returns true. returns false if something goes wrong.
src/mr/worker.go:73
↓ 1 callers
Function
checkConcurrentAppends
check that all known appends are present in a value, and are in order for each concurrent client.
src/kvraft/test_test.go:160
↓ 1 callers
Function
checkDefault
warn if the value contains non-default values, as it would if one sent an RPC but the reply struct was already modified. if the RPC reply contains def
src/labgob/labgob.go:127
↓ 1 callers
Function
checkDefault1
(value reflect.Value, depth int, name string)
src/labgob/labgob.go:134
↓ 1 callers
Method
checkNoLeader
check that none of the connected servers thinks it is the leader.
src/raft/config.go:479
↓ 1 callers
Function
checkSingle
(model Model, history []entry, computePartial bool, kill *int32)
src/porcupine/checker.go:179
↓ 1 callers
Method
checkTimeout
()
src/shardctrler/config.go:47
↓ 1 callers
Method
checkTimeout
()
src/shardkv/config.go:72
↓ 1 callers
Method
checkTimeout
()
src/shardkv_with_bug/config.go:72
↓ 1 callers
Function
checkType
(t reflect.Type)
src/labgob/labgob.go:79
↓ 1 callers
Method
clear
(pos uint)
src/porcupine/bitset.go:35
↓ 1 callers
Method
clone
()
src/porcupine/bitset.go:19
↓ 1 callers
Function
computeVisualizationData
(model Model, info linearizationInfo)
src/porcupine/visualization.go:33
↓ 1 callers
Function
convertEntries
(events []Event)
src/porcupine/checker.go:108
↓ 1 callers
Method
deleteClient
(ck *Clerk)
src/kvraft/config.go:215
↓ 1 callers
Method
detectConfig
ConfigDetectedLoop 配置检测
src/shardkv_with_bug/server.go:227
↓ 1 callers
Method
dispatch
(req reqMsg)
src/labrpc/labrpc.go:417
↓ 1 callers
Method
equals
(b2 bitset)
src/porcupine/bitset.go:62
↓ 1 callers
Method
execJoinCmd
状态机执行join命令的时候
src/shardctrler/executeCmd.go:60
↓ 1 callers
Method
execLeaveCmd
状态机执行leave命令的时候
src/shardctrler/executeCmd.go:136
↓ 1 callers
Method
execMoveCmd
(op *Op)
src/shardctrler/executeCmd.go:21
↓ 1 callers
Method
execQueryCmd
浅拷贝
src/shardctrler/executeCmd.go:6
↓ 1 callers
Method
ifDuplicate
(clientId int64, seqId int)
src/shardctrler/server.go:50
↓ 1 callers
Method
ifDuplicate
判断是否是重复操作的也比较简单,因为我是对seq进行递增,所以直接比大小即可
src/kvraft/server.go:189
↓ 1 callers
Method
ifDuplicate
传入op的SeqId此次op
src/shardkv/server.go:543
↓ 1 callers
Method
ifDuplicate
判断是否是重复操作的也比较简单,因为我是对seq进行递增,所以直接比大小即可
src/shardkv_with_bug/server.go:310
↓ 1 callers
Method
isNeedSnapshot
()
src/kvraft/snapshot.go:8
↓ 1 callers
Method
isNeedSnapshot
()
src/shardkv_with_bug/snapshot.go:8
↓ 1 callers
Method
killed
()
src/raft/util.go:70
↓ 1 callers
Function
length
(n *node)
src/porcupine/checker.go:83
↓ 1 callers
Function
lift
(entry *node)
src/porcupine/checker.go:159
↓ 1 callers
Function
loadPlugin
load the application Map and Reduce functions from a plugin file, e.g. ../mrapps/wc.so
src/main/mrsequential.go:91
↓ 1 callers
Function
loadPlugin
load the application Map and Reduce functions from a plugin file, e.g. ../mrapps/wc.so
src/main/mrworker.go:32
↓ 1 callers
Function
makeEntries
(history []Operation)
src/porcupine/checker.go:48
↓ 1 callers
Function
makeLinkedEntries
(entries []entry)
src/porcupine/checker.go:121
↓ 1 callers
Function
makeSeed
()
src/kvraft/config.go:29
↓ 1 callers
Function
makeSeed
()
src/raft/config.go:33
↓ 1 callers
Function
makeSeed
()
src/shardkv/config.go:27
↓ 1 callers
Function
makeSeed
()
src/shardkv_with_bug/config.go:27
← previous
next →
201–300 of 548, ranked by callers