Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vanilla-Beauty/MIT6.5840
/ functions
Functions
443 in github.com/Vanilla-Beauty/MIT6.5840
⨍
Functions
443
◇
Types & classes
93
↓ 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/config.go:91
↓ 3 callers
Function
deep_copy_map
(oldConfig *Config, newConfig *Config)
src/shardctrler/util.go:32
↓ 3 callers
Function
fillDefault
(model Model)
src/porcupine/checker.go:255
↓ 3 callers
Function
insertBefore
(n *node, mark *node)
src/porcupine/checker.go:70
↓ 3 callers
Function
key2shard
which shard is a key in? please use this function, and please do not change it.
src/shardkv/client.go:20
↓ 3 callers
Method
killed
()
src/raft/raft.go:259
↓ 3 callers
Method
op
()
src/kvraft/config.go:406
↓ 3 callers
Method
rpcCount
(server int)
src/raft/config.go:406
↓ 3 callers
Method
setunreliable
(unrel bool)
src/raft/config.go:414
↓ 2 callers
Function
Append
(cfg *config, ck *Clerk, key string, value string, log *OpLog, cli int)
src/kvraft/test_test.go:81
↓ 2 callers
Method
ConnectAll
()
src/shardctrler/config.go:138
↓ 2 callers
Method
ConnectClient
(ck *Clerk, to []int)
src/kvraft/config.go:232
↓ 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:223
↓ 2 callers
Function
GenericTestSpeed
Check that ops are committed fast enough, better than 1 per heartbeat interval
src/kvraft/test_test.go:391
↓ 2 callers
Method
GetSeq
()
src/kvraft/client.go:29
↓ 2 callers
Method
GetTotalCount
()
src/labrpc/labrpc.go:372
↓ 2 callers
Method
HandleOp
(opArgs *Op)
src/kvraft/server.go:162
↓ 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:188
↓ 2 callers
Method
Kill
()
src/kvraft/server.go:241
↓ 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/server.go:43
↓ 2 callers
Method
LoadSnapShot
(snapShot []byte)
src/kvraft/server.go:343
↓ 2 callers
Function
MakePersister
()
src/raft/persister.go:20
↓ 2 callers
Method
Move
(shard int, gid int)
src/shardctrler/client.go:104
↓ 2 callers
Method
Put
(key string, value string)
src/kvraft/client.go:137
↓ 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 a
src/kvraft/client.go:100
↓ 2 callers
Method
PutAppend
shared by Put and Append. You will have to modify this function.
src/shardkv/client.go:94
↓ 2 callers
Method
ReadRaftState
()
src/raft/persister.go:39
↓ 2 callers
Method
ResetHeartTimer
(timeStamp int)
src/raft/raft.go:117
↓ 2 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:53
↓ 2 callers
Method
ShutdownServer
Shutdown a server by isolating it
src/shardctrler/config.go:228
↓ 2 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/raft.go:219
↓ 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/shardctrler/config.go:260
↓ 2 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:221
↓ 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:138
↓ 2 callers
Method
checkFinished
()
src/raft/config.go:344
↓ 2 callers
Method
checkLogs
(i int, m ApplyMsg)
src/raft/config.go:144
↓ 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:467
↓ 2 callers
Method
checkTimeout
()
src/kvraft/config.go:62
↓ 2 callers
Method
checkTimeout
()
src/raft/config.go:337
↓ 2 callers
Method
check_nil_map
()
src/shardctrler/common.go:37
↓ 2 callers
Function
check_same_config
(t *testing.T, c1 Config, c2 Config)
src/shardctrler/test_test.go:57
↓ 2 callers
Method
cleanup
()
src/shardctrler/config.go:54
↓ 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:52
↓ 2 callers
Function
get_max_map_len_count
(newConfig *Config)
src/shardctrler/util.go:45
↓ 2 callers
Function
get_min_arr
(newConfig *Config)
src/shardctrler/util.go:66
↓ 2 callers
Method
hash
()
src/porcupine/bitset.go:54
↓ 2 callers
Method
ingestSnap
returns "" or error string
src/raft/config.go:188
↓ 2 callers
Function
internalChurn
(t *testing.T, unreliable bool)
src/raft/test_test.go:947
↓ 2 callers
Method
isServerDead
(endname interface{}, servername interface{}, server *Server)
src/labrpc/labrpc.go:208
↓ 2 callers
Method
joinm
(gis []int)
src/shardkv/config.go:310
↓ 2 callers
Method
leavem
(gis []int)
src/shardkv/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
randstring
(n int)
src/shardctrler/config.go:16
↓ 2 callers
Function
randstring
(n int)
src/kvraft/config.go:19
↓ 2 callers
Function
randstring
(n int)
src/raft/config.go:30
↓ 2 callers
Method
rpcTotal
()
src/kvraft/config.go:392
↓ 2 callers
Method
rpcTotal
()
src/raft/config.go:410
↓ 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:115
↓ 2 callers
Function
usage
()
src/main/diskvd.go:25
↓ 2 callers
Function
usage
()
src/main/lockc.go:11
↓ 1 callers
Method
ApplyHandler
()
src/shardctrler/server.go:205
↓ 1 callers
Method
ApplyHandler
()
src/kvraft/server.go:252
↓ 1 callers
Function
CallForTask
example function to show how to make an RPC call to the coordinator. the RPC argument and reply types are defined in rpc.go.
src/mr/worker.go:197
↓ 1 callers
Method
CommitChecker
()
src/raft/raft.go:298
↓ 1 callers
Method
ConfigExecute
(op *Op)
src/shardctrler/server.go:64
↓ 1 callers
Function
CreateNewConfig
(me int, configs []Config, newGroups map[int][]string)
src/shardctrler/util.go:102
↓ 1 callers
Method
DBExecute
(op *Op)
src/kvraft/server.go:127
↓ 1 callers
Function
DPrintf
超时为2s
src/shardctrler/util.go:15
↓ 1 callers
Function
DelFileByMapId
(targetNumber int, path string)
src/mr/utils.go:11
↓ 1 callers
Function
DelFileByReduceId
(targetNumber int, path string)
src/mr/utils.go:43
↓ 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:239
↓ 1 callers
Method
Elect
()
src/raft/raft.go:1023
↓ 1 callers
Method
EncodeValue
(value reflect.Value)
src/labgob/labgob.go:37
↓ 1 callers
Method
GenSnapShot
()
src/kvraft/server.go:331
↓ 1 callers
Function
GetRandomElectTimeOut
(rd *rand.Rand)
src/raft/util.go:18
↓ 1 callers
Method
GetVoteAnswer
(server int, args *RequestVoteArgs)
src/raft/raft.go:953
↓ 1 callers
Function
HandleMapTask
(reply *MessageReply, mapf func(string, string) []KeyValue)
src/mr/worker.go:74
↓ 1 callers
Function
HandleReduceTask
(reply *MessageReply, reducef func(string, []string) string)
src/mr/worker.go:123
↓ 1 callers
Method
Leader
()
src/kvraft/config.go:325
↓ 1 callers
Method
LogSize
Maximum log size across all servers
src/raft/config.go:647
↓ 1 callers
Method
LongDelays
(yes bool)
src/labrpc/labrpc.go:185
↓ 1 callers
Method
LongReordering
(yes bool)
src/labrpc/labrpc.go:178
↓ 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:1087
↓ 1 callers
Function
MakeClerk
(servers []*labrpc.ClientEnd)
src/shardctrler/client.go:39
↓ 1 callers
Function
MakeClerk
(servers []*labrpc.ClientEnd)
src/kvraft/client.go:35
↓ 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/client.go:50
↓ 1 callers
Function
MoveShard2Gid
(me int, configs []Config, n_shard int, n_gid int)
src/shardctrler/util.go:269
↓ 1 callers
Function
NextValue
predict effect of Append(k, val) if old value is prev.
src/kvraft/test_test.go:132
↓ 1 callers
Method
Print
()
src/raft/raft.go:108
↓ 1 callers
Function
QueryConfig
(me int, configs []Config, num int)
src/shardctrler/util.go:320
↓ 1 callers
Method
Raft
needed by shardkv tester
src/shardctrler/server.go:201
← previous
next →
101–200 of 443, ranked by callers