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
↓ 5 callers
Function
snapcommon
(t *testing.T, name string, disconnect bool, reliable bool, crash bool)
src/raft/test_test.go:1121
↓ 5 callers
Method
startCommand
(command Op, timeoutPeriod time.Duration)
src/shardkv/server.go:583
↓ 4 callers
Method
ConnectAll
()
src/kvraft/config.go:168
↓ 4 callers
Method
Done
main/mrcoordinator.go calls Done() periodically to find out if the entire job has finished.
src/mr/coordinator.go:46
↓ 4 callers
Method
Get
(key string)
src/kvraft/client.go:28
↓ 4 callers
Method
Get
Get GetType fetch the current value for a key. returns "" if the key does not exist. keeps trying forever in the face of all other errors. You will ha
src/shardkv/client.go:71
↓ 4 callers
Method
Killed
()
src/shardkv_with_bug/server.go:490
↓ 4 callers
Method
Snapshot
the service says it has created a snapshot that has all info up to and including index. this means the service no longer needs the log through (and in
src/raft/snapshot.go:9
↓ 4 callers
Method
bytesTotal
()
src/raft/config.go:416
↓ 4 callers
Method
checklogs
check that no server's log is too big.
src/shardkv/config.go:91
↓ 4 callers
Method
connectUnlocked
attach server i to servers listed in to caller must hold cfg.mu
src/shardctrler/config.go:80
↓ 4 callers
Method
connectUnlocked
attach server i to servers listed in to caller must hold cfg.mu
src/kvraft/config.go:110
↓ 4 callers
Method
disconnectUnlocked
detach server i from the servers listed in from caller must hold cfg.mu
src/shardctrler/config.go:104
↓ 4 callers
Method
disconnectUnlocked
detach server i from the servers listed in from caller must hold cfg.mu
src/kvraft/config.go:134
↓ 4 callers
Method
empty
()
src/raft/log.go:50
↓ 4 callers
Method
getWaitCh
(index int)
src/shardkv_with_bug/server.go:321
↓ 4 callers
Method
makeClient
Create a clerk with clerk specific server names. Give it connections to all of the servers, but for now enable only connections to servers in to[].
src/shardctrler/config.go:164
↓ 4 callers
Method
sendRequestAppendEntries
(isHeartbeat bool, server int, args *RequestAppendEntriesArgs, reply *RequestAppendEntriesReply)
src/raft/raft.go:234
↓ 4 callers
Method
servername
shard server name for labrpc. i'th server of group gid.
src/shardkv/config.go:114
↓ 4 callers
Method
servername
shard server name for labrpc. i'th server of group gid.
src/shardkv_with_bug/config.go:114
↓ 4 callers
Method
wait
wait for at least n servers to commit. but don't wait forever.
src/raft/config.go:529
↓ 3 callers
Method
Get
fetch the current value for a key. returns "" if the key does not exist. keeps trying forever in the face of all other errors. You will have to modify
src/shardkv_with_bug/client.go:73
↓ 3 callers
Method
GetTotalBytes
()
src/labrpc/labrpc.go:391
↓ 3 callers
Method
Leader
()
src/shardctrler/config.go:299
↓ 3 callers
Method
LogSize
Maximum log size across all servers
src/kvraft/config.go:85
↓ 3 callers
Function
NewDecoder
(r io.Reader)
src/labgob/labgob.go:48
↓ 3 callers
Function
NewEncoder
(w io.Writer)
src/labgob/labgob.go:28
↓ 3 callers
Method
ReadRaftState
()
src/raft/persister.go:39
↓ 3 callers
Method
StartAppendEntries
(heart bool)
src/raft/raft.go:324
↓ 3 callers
Method
appendL
(newEntries ...Entry)
src/raft/log.go:33
↓ 3 callers
Function
bitsetIndex
(pos uint)
src/porcupine/bitset.go:25
↓ 3 callers
Function
checkEvents
(model Model, history []Event, verbose bool, timeout time.Duration)
src/porcupine/checker.go:355
↓ 3 callers
Function
checkOperations
(model Model, history []Operation, verbose bool, timeout time.Duration)
src/porcupine/checker.go:365
↓ 3 callers
Method
checklogs
check that no server's log is too big.
src/shardkv_with_bug/config.go:91
↓ 3 callers
Function
fillDefault
(model Model)
src/porcupine/checker.go:255
↓ 3 callers
Method
getAppendEntries
这是按照相对FirstLogIndex的偏移量来取日志的
src/raft/log.go:40
↓ 3 callers
Method
getWaitCh
(index int)
src/kvraft/server.go:127
↓ 3 callers
Function
ifCond
(cond bool, a, b interface{})
src/raft/util.go:33
↓ 3 callers
Function
insertBefore
(n *node, mark *node)
src/porcupine/checker.go:70
↓ 3 callers
Method
killed
()
src/kvraft/server.go:265
↓ 3 callers
Function
max
(a, b int)
src/raft/util.go:19
↓ 3 callers
Method
op
()
src/kvraft/config.go:410
↓ 3 callers
Method
printOp
(op Op)
src/shardctrler/server.go:124
↓ 3 callers
Method
rpcCount
(server int)
src/raft/config.go:404
↓ 3 callers
Method
setunreliable
(unrel bool)
src/raft/config.go:412
↓ 3 callers
Method
startCommand
(command Op, timeoutPeriod time.Duration)
src/shardkv_with_bug/server.go:505
↓ 3 callers
Method
tryCommitL
主节点对日志进行提交,其条件是多余一半的从节点的commitIndex>=leader节点当前提交的commitIndex
src/raft/log_replication.go:181
↓ 3 callers
Method
unregisterTask
(index int)
src/shardkv_with_bug/server.go:332
↓ 2 callers
Function
Append
(cfg *config, ck *Clerk, key string, value string, log *OpLog, cli int)
src/kvraft/test_test.go:79
↓ 2 callers
Method
ConnectAll
()
src/shardctrler/config.go:138
↓ 2 callers
Method
ConnectClient
(ck *Clerk, to []int)
src/kvraft/config.go:236
↓ 2 callers
Method
ConnectClientUnlocked
caller should hold cfg.mu
src/shardctrler/config.go:196
↓ 2 callers
Method
ConnectClientUnlocked
caller should hold cfg.mu
src/kvraft/config.go:227
↓ 2 callers
Method
DecodeSnapShot
DecodeSnapShot install a given snapshot
src/shardkv/server.go:500
↓ 2 callers
Function
GenericTestSpeed
Check that ops are committed fast enough, better than 1 per heartbeat interval
src/kvraft/test_test.go:397
↓ 2 callers
Method
GetLastIncludeIndex
()
src/raft/raft.go:840
↓ 2 callers
Method
GetTotalCount
()
src/labrpc/labrpc.go:386
↓ 2 callers
Method
Kill
the tester calls Kill() when a ShardCtrler instance won't be needed again. you are not required to do anything in Kill(), but it might be convenient t
src/shardctrler/server.go:347
↓ 2 callers
Method
Kill
the tester calls Kill() when a KVServer instance won't be needed again. for your convenience, we supply code to set rf.dead (without needing a lock),
src/kvraft/server.go:258
↓ 2 callers
Method
Kill
------------------------------------------------------utils封装部分---------------------------------------------------- Kill the tester calls Kill() when
src/shardkv/server.go:531
↓ 2 callers
Method
Kill
the tester calls Kill() when a ShardKV instance won't be needed again. you are not required to do anything in Kill(), but it might be convenient to (f
src/shardkv_with_bug/server.go:483
↓ 2 callers
Function
MakePersister
()
src/raft/persister.go:20
↓ 2 callers
Method
Move
(shard int, gid int)
src/shardctrler/client.go:125
↓ 2 callers
Method
Put
(key string, value string)
src/kvraft/client.go:92
↓ 2 callers
Method
PutAppend
(key string, value string, op string)
src/kvraft/client.go:59
↓ 2 callers
Method
PutAppend
PutAppend shared by Put and Append. You will have to modify this function.
src/shardkv/client.go:116
↓ 2 callers
Method
PutAppend
shared by Put and Append. You will have to modify this function.
src/shardkv_with_bug/client.go:116
↓ 2 callers
Method
Raft
needed by shardkv_old tester
src/shardctrler/server.go:359
↓ 2 callers
Method
ShutdownServer
Shutdown a server by isolating it
src/shardctrler/config.go:228
↓ 2 callers
Method
SnapshotSize
Maximum snapshot size across all servers
src/kvraft/config.go:97
↓ 2 callers
Method
StartServer
If restart servers, first call ShutdownServer
src/shardctrler/config.go:260
↓ 2 callers
Function
checkClntAppends
check that for a specific client all known appends are present in a value, and in order
src/kvraft/test_test.go:139
↓ 2 callers
Method
checkFinished
()
src/raft/config.go:339
↓ 2 callers
Method
checkLogs
(i int, m ApplyMsg)
src/raft/config.go:140
↓ 2 callers
Function
checkParallel
(model Model, history [][]entry, computeInfo bool, timeout time.Duration)
src/porcupine/checker.go:274
↓ 2 callers
Method
checkTerms
check that everyone agrees on the term.
src/raft/config.go:462
↓ 2 callers
Method
checkTimeout
()
src/kvraft/config.go:65
↓ 2 callers
Method
checkTimeout
()
src/raft/config.go:332
↓ 2 callers
Function
check_same_config
(t *testing.T, c1 Config, c2 Config)
src/shardctrler/test_test.go:56
↓ 2 callers
Method
cleanup
()
src/shardctrler/config.go:54
↓ 2 callers
Method
cloneShard
判断当前节点是否处于迁移期
src/shardkv/server.go:616
↓ 2 callers
Method
cloneShard
判断当前节点是否处于迁移期
src/shardkv_with_bug/server.go:543
↓ 2 callers
Function
coordinatorSock
Add your RPC definitions here. Cook up a unique-ish UNIX-domain socket name in /var/tmp, for the coordinator. Can't use the current directory since At
src/mr/rpc.go:31
↓ 2 callers
Method
decodeSnapshot
解码快照
src/kvraft/snapshot.go:46
↓ 2 callers
Method
decodeSnapshot
解码快照
src/shardkv_with_bug/snapshot.go:46
↓ 2 callers
Method
getWaitCh
(index int)
src/shardkv/server.go:552
↓ 2 callers
Method
hash
()
src/porcupine/bitset.go:54
↓ 2 callers
Method
ingestSnap
returns "" or error string
src/raft/config.go:183
↓ 2 callers
Function
internalChurn
(t *testing.T, unreliable bool)
src/raft/test_test.go:966
↓ 2 callers
Method
isServerDead
(endname interface{}, servername interface{}, server *Server)
src/labrpc/labrpc.go:222
↓ 2 callers
Method
joinm
(gis []int)
src/shardkv/config.go:310
↓ 2 callers
Method
joinm
(gis []int)
src/shardkv_with_bug/config.go:310
↓ 2 callers
Method
killed
()
src/raft/raft.go:308
↓ 2 callers
Method
killed
()
src/shardkv/server.go:537
↓ 2 callers
Method
leavem
(gis []int)
src/shardkv/config.go:328
↓ 2 callers
Method
leavem
(gis []int)
src/shardkv_with_bug/config.go:328
↓ 2 callers
Function
make_config
(t *testing.T, n int, unreliable bool)
src/shardctrler/config.go:334
↓ 2 callers
Function
maybeCrash
()
src/mrapps/nocrash.go:17
↓ 2 callers
Function
maybeCrash
()
src/mrapps/crash.go:20
↓ 2 callers
Function
min
(a, b int)
src/raft/util.go:26
← previous
next →
101–200 of 548, ranked by callers