Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WenbinZhu/mit-6.824-labs
/ functions
Functions
386 in github.com/WenbinZhu/mit-6.824-labs
⨍
Functions
386
◇
Types & classes
90
↓ 2 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 can send an RPC w
src/kvraft/client.go:47
↓ 2 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 modif
src/shardkv/client.go:68
↓ 2 callers
Method
GetTotalCount
()
src/labrpc/labrpc.go:370
↓ 2 callers
Method
Kill
the tester calls Kill() when a ShardMaster instance won't be needed again. you are not required to do anything in Kill(), but it might be convenient
src/shardmaster/server.go:50
↓ 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:189
↓ 2 callers
Function
MakePersister
()
src/raft/persister.go:20
↓ 2 callers
Method
Move
(shard int, gid int)
src/shardmaster/client.go:84
↓ 2 callers
Method
Put
(key string, value string)
src/kvraft/client.go:113
↓ 2 callers
Method
PutAppend
shared by Put and Append. you can send an RPC with code like this: ok := ck.servers[i].Call("KVServer.PutAppend", &args, &reply) the types of args
src/kvraft/client.go:87
↓ 2 callers
Method
PutAppend
shared by Put and Append. You will have to modify this function.
src/shardkv/client.go:102
↓ 2 callers
Method
ReadRaftState
()
src/raft/persister.go:39
↓ 2 callers
Method
ReadSnapshot
()
src/raft/persister.go:60
↓ 2 callers
Method
SaveRaftState
(state []byte)
src/raft/persister.go:33
↓ 2 callers
Method
ShutdownServer
Shutdown a server by isolating it
src/kvraft/config.go:255
↓ 2 callers
Method
SnapshotSize
Maximum snapshot size across all servers
src/kvraft/config.go:94
↓ 2 callers
Method
StartServer
If restart servers, first call ShutdownServer
src/shardmaster/config.go:260
↓ 2 callers
Method
applyLogs
apply the committed logs.
src/raft/raft.go:256
↓ 2 callers
Method
applyToStateMachine
applied the command to the state machine lock must be held before calling this
src/kvraft/server.go:168
↓ 2 callers
Method
broadcastAppendEntries
broadcast AppendEntries RPCs to all peers in parallel. lock must be held before calling this.
src/raft/raft.go:525
↓ 2 callers
Function
checkParallel
(model Model, history [][]entry, computeInfo bool, timeout time.Duration)
src/porcupine/checker.go:269
↓ 2 callers
Method
checkTerms
check that everyone agrees on the term.
src/raft/config.go:335
↓ 2 callers
Method
checkTimeout
()
src/kvraft/config.go:62
↓ 2 callers
Method
checkTimeout
()
src/raft/config.go:217
↓ 2 callers
Method
cleanup
()
src/shardmaster/config.go:54
↓ 2 callers
Method
convertToCandidate
convert the raft state to candidate.
src/raft/raft.go:626
↓ 2 callers
Method
getElectionTimeout
get the randomized election timeout.
src/raft/raft.go:209
↓ 2 callers
Method
getLastTerm
get the term of the last log entry. lock must be held before calling this.
src/raft/raft.go:202
↓ 2 callers
Method
hash
()
src/porcupine/bitset.go:54
↓ 2 callers
Function
internalChurn
(t *testing.T, unreliable bool)
src/raft/test_test.go:825
↓ 2 callers
Method
isServerDead
(endname interface{}, servername interface{}, server *Server)
src/labrpc/labrpc.go:206
↓ 2 callers
Method
joinm
(gis []int)
src/shardkv/config.go:307
↓ 2 callers
Method
leavem
(gis []int)
src/shardkv/config.go:325
↓ 2 callers
Function
make_config
(t *testing.T, n int, unreliable bool)
src/shardmaster/config.go:332
↓ 2 callers
Function
masterSock
Add your RPC definitions here. Cook up a unique-ish UNIX-domain socket name in /var/tmp, for the master. Can't use the current directory since Athena
src/mr/rpc.go:49
↓ 2 callers
Function
maybeCrash
()
src/mrapps/nocrash.go:17
↓ 2 callers
Function
maybeCrash
()
src/mrapps/crash.go:20
↓ 2 callers
Function
partitioner
repartition the servers periodically
src/kvraft/test_test.go:124
↓ 2 callers
Function
randstring
(n int)
src/shardmaster/config.go:16
↓ 2 callers
Function
randstring
(n int)
src/kvraft/config.go:19
↓ 2 callers
Function
randstring
(n int)
src/raft/config.go:23
↓ 2 callers
Function
reportTaskDone
(taskType TaskType, taskId int)
src/mr/worker.go:208
↓ 2 callers
Method
resetChannels
reset the channels, needed when converting server state. lock must be held before calling this.
src/raft/raft.go:650
↓ 2 callers
Method
rpcTotal
()
src/kvraft/config.go:392
↓ 2 callers
Method
rpcTotal
()
src/raft/config.go:284
↓ 2 callers
Method
selectTask
(taskList []Task, workerId int)
src/mr/master.go:125
↓ 2 callers
Method
set
(pos uint)
src/porcupine/bitset.go:29
↓ 2 callers
Function
usage
()
src/main/diskvd.go:25
↓ 2 callers
Function
usage
()
src/main/lockc.go:11
↓ 2 callers
Method
waitForApplied
send the op log to Raft library and wait for it to be applied
src/kvraft/server.go:97
↓ 1 callers
Method
Append
(key string, value string)
src/kvraft/client.go:116
↓ 1 callers
Method
DisconnectClientUnlocked
caller should hold cfg.mu
src/shardmaster/config.go:212
↓ 1 callers
Method
DisconnectClientUnlocked
caller should hold cfg.mu
src/kvraft/config.go:239
↓ 1 callers
Method
EncodeValue
(value reflect.Value)
src/labgob/labgob.go:37
↓ 1 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 (
src/shardkv/server.go:46
↓ 1 callers
Method
Leader
()
src/shardmaster/config.go:299
↓ 1 callers
Method
Leader
()
src/kvraft/config.go:325
↓ 1 callers
Method
LongDelays
(yes bool)
src/labrpc/labrpc.go:183
↓ 1 callers
Method
LongReordering
(yes bool)
src/labrpc/labrpc.go:176
↓ 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 pee
src/raft/raft.go:706
↓ 1 callers
Function
MakeClerk
(servers []*labrpc.ClientEnd)
src/shardmaster/client.go:24
↓ 1 callers
Function
MakeClerk
(servers []*labrpc.ClientEnd)
src/kvraft/client.go:25
↓ 1 callers
Function
MakeClerk
the tester calls MakeClerk. masters[] is needed to call shardmaster.MakeClerk(). make_end(servername) turns a server name from a Config.Groups[gid]
src/shardkv/client.go:54
↓ 1 callers
Function
NextValue
predict effect of Append(k, val) if old value is prev.
src/kvraft/test_test.go:74
↓ 1 callers
Method
Raft
needed by shardkv tester
src/shardmaster/server.go:56
↓ 1 callers
Function
Register
(value interface{})
src/labgob/labgob.go:58
↓ 1 callers
Method
ShutdownServer
Shutdown a server by isolating it
src/shardmaster/config.go:228
↓ 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
src/kvraft/server.go:214
↓ 1 callers
Method
StartMasterServer
(i int)
src/shardkv/config.go:267
↓ 1 callers
Function
StartServer
servers[] contains the ports of the set of servers that will cooperate via Paxos to form the fault-tolerant shardmaster service. me is the index of t
src/shardmaster/server.go:66
↓ 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 snapshot
src/shardkv/server.go:80
↓ 1 callers
Function
Visualize
(model Model, info linearizationInfo, output io.Writer)
src/porcupine/visualization.go:89
↓ 1 callers
Method
applyOpsLoop
background loop to receive the logs committed by the Raft library and apply them to the kv server state machine
src/kvraft/server.go:132
↓ 1 callers
Method
broadcastRequestVote
broadcast RequestVote RPCs to all peers in parallel. lock must be held before calling this.
src/raft/raft.go:362
↓ 1 callers
Function
cacheContains
(model Model, cache map[uint64][]cacheEntry, entry cacheEntry)
src/porcupine/checker.go:140
↓ 1 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:80
↓ 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:101
↓ 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 de
src/labgob/labgob.go:122
↓ 1 callers
Function
checkDefault1
(value reflect.Value, depth int, name string)
src/labgob/labgob.go:129
↓ 1 callers
Method
checkNoLeader
check that there's no leader
src/raft/config.go:351
↓ 1 callers
Function
checkSingle
(model Model, history []entry, computePartial bool, kill *int32)
src/porcupine/checker.go:174
↓ 1 callers
Method
checkTimeout
()
src/shardmaster/config.go:47
↓ 1 callers
Method
checkTimeout
()
src/shardkv/config.go:72
↓ 1 callers
Function
checkType
(t reflect.Type)
src/labgob/labgob.go:72
↓ 1 callers
Function
check_same_config
(t *testing.T, c1 Config, c2 Config)
src/shardmaster/test_test.go:55
↓ 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:103
↓ 1 callers
Method
convertToLeader
convert the raft state to leader.
src/raft/raft.go:601
↓ 1 callers
Method
deleteClient
(ck *Clerk)
src/kvraft/config.go:211
↓ 1 callers
Method
dispatch
(req reqMsg)
src/labrpc/labrpc.go:403
↓ 1 callers
Function
doMap
(mapf func(string, string) []KeyValue, filePath string, mapId int)
src/mr/worker.go:86
↓ 1 callers
Function
doReduce
(reducef func(string, []string) string, reduceId int)
src/mr/worker.go:139
↓ 1 callers
Method
equals
(b2 bitset)
src/porcupine/bitset.go:62
↓ 1 callers
Function
getReduceCount
()
src/mr/worker.go:192
↓ 1 callers
Function
ihash
use ihash(key) % NReduce to choose the reduce task number for each KeyValue emitted by Map.
src/mr/worker.go:33
↓ 1 callers
Method
isLogUpToDate
check if the candidate's log is at least as up-to-date as ours lock must be held before calling this.
src/raft/raft.go:243
↓ 1 callers
Method
isSameOp
check if the issued command is the same as the applied command
src/kvraft/server.go:123
↓ 1 callers
Method
killed
()
src/raft/raft.go:593
↓ 1 callers
Function
length
(n *node)
src/porcupine/checker.go:78
← previous
next →
101–200 of 386, ranked by callers