Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/YushuaiJi/Distribution-System
/ functions
Functions
376 in github.com/YushuaiJi/Distribution-System
⨍
Functions
376
◇
Types & classes
83
↓ 3 callers
Function
insertBefore
(n *node, mark *node)
MIT-6.824/src/linearizability/linearizability.go:59
↓ 3 callers
Function
key2shard
which shard is a key in? please use this function, and please do not change it.
MIT-6.824/src/shardkv/client.go:22
↓ 3 callers
Function
makeInputs
Make input file
MIT-6.824/src/mapreduce/test_test.go:99
↓ 3 callers
Method
op
()
MIT-6.824/src/kvraft/config.go:406
↓ 3 callers
Function
reduceName
reduceName constructs the name of the intermediate file which map task <mapTask> produces for reduce task <reduceTask>.
MIT-6.824/src/mapreduce/common.go:36
↓ 3 callers
Method
rpcCount
(server int)
MIT-6.824/src/raft/config.go:280
↓ 3 callers
Function
schedule
schedule() starts and waits for all tasks in the given phase (mapPhase or reducePhase). the mapFiles argument holds the names of the files that are t
MIT-6.824/src/mapreduce/schedule.go:17
↓ 3 callers
Method
setCommitIndex
several setters, should be called with a lock
MIT-6.824/src/raft/raft.go:161
↓ 3 callers
Method
setunreliable
(unrel bool)
MIT-6.824/src/raft/config.go:288
↓ 3 callers
Function
spawn_clients_and_wait
spawn ncli clients and wait until they are all done
MIT-6.824/src/kvraft/test_test.go:55
↓ 2 callers
Method
ConnectAll
()
MIT-6.824/src/shardmaster/config.go:138
↓ 2 callers
Method
ConnectClient
(ck *Clerk, to []int)
MIT-6.824/src/kvraft/config.go:232
↓ 2 callers
Method
ConnectClientUnlocked
caller should hold cfg.mu
MIT-6.824/src/shardmaster/config.go:196
↓ 2 callers
Method
ConnectClientUnlocked
caller should hold cfg.mu
MIT-6.824/src/kvraft/config.go:223
↓ 2 callers
Function
GenericTestLinearizability
similar to GenericTest, but with clients doing random operations (and using a linearizability checker)
MIT-6.824/src/kvraft/test_test.go:285
↓ 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
MIT-6.824/src/kvraft/client.go:42
↓ 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
MIT-6.824/src/shardkv/client.go:68
↓ 2 callers
Method
GetTotalCount
()
MIT-6.824/src/labrpc/labrpc.go:359
↓ 2 callers
Method
IsServerDead
(endname interface{}, servername interface{}, server *Server)
MIT-6.824/src/labrpc/labrpc.go:197
↓ 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
MIT-6.824/src/shardmaster/server.go:50
↓ 2 callers
Method
Kill
the tester calls Kill() when a KVServer instance won't be needed again. you are not required to do anything in Kill(), but it might be convenient to
MIT-6.824/src/kvraft/server.go:187
↓ 2 callers
Function
MakePersister
()
MIT-6.824/src/raft/persister.go:20
↓ 2 callers
Method
Move
(shard int, gid int)
MIT-6.824/src/shardmaster/client.go:84
↓ 2 callers
Method
Put
(key string, value string)
MIT-6.824/src/kvraft/client.go:101
↓ 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
MIT-6.824/src/kvraft/client.go:77
↓ 2 callers
Method
PutAppend
shared by Put and Append. You will have to modify this function.
MIT-6.824/src/shardkv/client.go:101
↓ 2 callers
Method
ReadRaftState
()
MIT-6.824/src/raft/persister.go:39
↓ 2 callers
Method
SaveRaftState
(state []byte)
MIT-6.824/src/raft/persister.go:33
↓ 2 callers
Method
SaveStateAndSnapshot
Save both Raft state and K/V snapshot as a single atomic action, to help avoid them getting out of sync.
MIT-6.824/src/raft/persister.go:53
↓ 2 callers
Function
Sequential
Sequential runs map and reduce tasks sequentially, waiting for each task to complete before running the next.
MIT-6.824/src/mapreduce/master.go:60
↓ 2 callers
Method
ShutdownServer
Shutdown a server by isolating it
MIT-6.824/src/kvraft/config.go:255
↓ 2 callers
Method
SnapshotSize
Maximum snapshot size across all servers
MIT-6.824/src/kvraft/config.go:94
↓ 2 callers
Method
StartServer
If restart servers, first call ShutdownServer
MIT-6.824/src/shardmaster/config.go:260
↓ 2 callers
Function
checkSingle
(model Model, subhistory *node, kill *int32)
MIT-6.824/src/linearizability/linearizability.go:167
↓ 2 callers
Method
checkTerms
check that everyone agrees on the term.
MIT-6.824/src/raft/config.go:331
↓ 2 callers
Method
checkTimeout
()
MIT-6.824/src/kvraft/config.go:62
↓ 2 callers
Method
checkTimeout
()
MIT-6.824/src/raft/config.go:217
↓ 2 callers
Method
cleanup
()
MIT-6.824/src/shardmaster/config.go:54
↓ 2 callers
Function
doMap
( jobName string, // the name of the MapReduce job mapTask int, // which map task this is inFile string, n
MIT-6.824/src/mapreduce/common_map.go:11
↓ 2 callers
Function
doReduce
( jobName string, // the name of the whole MapReduce job reduceTask int, // which reduce task this is outFi
MIT-6.824/src/mapreduce/common_reduce.go:10
↓ 2 callers
Function
fillDefault
(model Model)
MIT-6.824/src/linearizability/linearizability.go:216
↓ 2 callers
Method
hash
()
MIT-6.824/src/linearizability/bitset.go:56
↓ 2 callers
Method
installSnapshot
(snapshot []byte)
MIT-6.824/src/kvraft/server.go:192
↓ 2 callers
Function
internalChurn
(t *testing.T, unreliable bool)
MIT-6.824/src/raft/test_test.go:784
↓ 2 callers
Method
isDuplicateRequest
should be called with lock
MIT-6.824/src/kvraft/server.go:84
↓ 2 callers
Method
joinm
(gis []int)
MIT-6.824/src/shardkv/config.go:307
↓ 2 callers
Method
leavem
(gis []int)
MIT-6.824/src/shardkv/config.go:325
↓ 2 callers
Function
makeLinkedEntries
(entries []entry)
MIT-6.824/src/linearizability/linearizability.go:109
↓ 2 callers
Function
make_config
(t *testing.T, n int, unreliable bool)
MIT-6.824/src/shardmaster/config.go:332
↓ 2 callers
Function
newMaster
newMaster initializes a new Map/Reduce Master
MIT-6.824/src/mapreduce/master.go:49
↓ 2 callers
Function
partitioner
repartition the servers periodically
MIT-6.824/src/kvraft/test_test.go:122
↓ 2 callers
Function
randstring
(n int)
MIT-6.824/src/shardmaster/config.go:16
↓ 2 callers
Function
randstring
(n int)
MIT-6.824/src/kvraft/config.go:19
↓ 2 callers
Method
rpcTotal
()
MIT-6.824/src/kvraft/config.go:392
↓ 2 callers
Method
rpcTotal
()
MIT-6.824/src/raft/config.go:284
↓ 2 callers
Method
run
run executes a mapreduce job on the given number of mappers and reducers. First, it divides up the input file among the given number of mappers, and
MIT-6.824/src/mapreduce/master.go:132
↓ 2 callers
Method
set
(pos uint)
MIT-6.824/src/linearizability/bitset.go:27
↓ 2 callers
Method
startElection
should be called with lock
MIT-6.824/src/raft/raft.go:586
↓ 2 callers
Method
syncSnapshotWith
invoke by Leader to sync snapshot with one follower
MIT-6.824/src/raft/raft.go:705
↓ 2 callers
Function
usage
()
MIT-6.824/src/main/diskvd.go:25
↓ 2 callers
Function
usage
()
MIT-6.824/src/main/lockc.go:11
↓ 2 callers
Method
waitApplying
(op Op, timeout time.Duration)
MIT-6.824/src/kvraft/server.go:92
↓ 1 callers
Method
Append
(key string, value string)
MIT-6.824/src/kvraft/client.go:104
↓ 1 callers
Function
CheckEventsTimeout
timeout = 0 means no timeout if this operation times out, then a false positive is possible
MIT-6.824/src/linearizability/linearizability.go:278
↓ 1 callers
Function
CheckOperationsTimeout
timeout = 0 means no timeout if this operation times out, then a false positive is possible
MIT-6.824/src/linearizability/linearizability.go:235
↓ 1 callers
Method
CleanupFiles
CleanupFiles removes all intermediate files produced by running mapreduce.
MIT-6.824/src/mapreduce/master_splitmerge.go:62
↓ 1 callers
Method
DisconnectClientUnlocked
caller should hold cfg.mu
MIT-6.824/src/shardmaster/config.go:212
↓ 1 callers
Method
DisconnectClientUnlocked
caller should hold cfg.mu
MIT-6.824/src/kvraft/config.go:239
↓ 1 callers
Function
Distributed
Distributed schedules map and reduce tasks on workers that register with the master over RPC.
MIT-6.824/src/mapreduce/master.go:105
↓ 1 callers
Method
EncodeValue
(value reflect.Value)
MIT-6.824/src/labgob/labgob.go:37
↓ 1 callers
Method
GetRaftStateSize
()
MIT-6.824/src/raft/raft.go:230
↓ 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 (
MIT-6.824/src/shardkv/server.go:46
↓ 1 callers
Method
Leader
()
MIT-6.824/src/shardmaster/config.go:299
↓ 1 callers
Method
Leader
()
MIT-6.824/src/kvraft/config.go:325
↓ 1 callers
Method
LongDelays
(yes bool)
MIT-6.824/src/labrpc/labrpc.go:174
↓ 1 callers
Method
LongReordering
(yes bool)
MIT-6.824/src/labrpc/labrpc.go:167
↓ 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
MIT-6.824/src/raft/raft.go:842
↓ 1 callers
Function
MakeClerk
(servers []*labrpc.ClientEnd)
MIT-6.824/src/shardmaster/client.go:24
↓ 1 callers
Function
MakeClerk
(servers []*labrpc.ClientEnd)
MIT-6.824/src/kvraft/client.go:22
↓ 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]
MIT-6.824/src/shardkv/client.go:54
↓ 1 callers
Function
NextValue
predict effect of Append(k, val) if old value is prev.
MIT-6.824/src/kvraft/test_test.go:72
↓ 1 callers
Method
ProcessReq
(req reqMsg)
MIT-6.824/src/labrpc/labrpc.go:207
↓ 1 callers
Method
Raft
needed by shardkv tester
MIT-6.824/src/shardmaster/server.go:56
↓ 1 callers
Method
ReadEndnameInfo
(endname interface{})
MIT-6.824/src/labrpc/labrpc.go:181
↓ 1 callers
Function
Register
(value interface{})
MIT-6.824/src/labgob/labgob.go:58
↓ 1 callers
Method
ReplaceLogWithSnapshot
(appliedIndex int, kvSnapshot []byte)
MIT-6.824/src/raft/raft.go:234
↓ 1 callers
Method
ShutdownServer
Shutdown a server by isolating it
MIT-6.824/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
MIT-6.824/src/kvraft/server.go:219
↓ 1 callers
Method
StartMasterServer
(i int)
MIT-6.824/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
MIT-6.824/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
MIT-6.824/src/shardkv/server.go:80
↓ 1 callers
Function
cacheContains
(model Model, cache map[uint64][]cacheEntry, entry cacheEntry)
MIT-6.824/src/linearizability/linearizability.go:133
↓ 1 callers
Function
checkClntAppends
check that for a specific client all known appends are present in a value, and in order
MIT-6.824/src/kvraft/test_test.go:78
↓ 1 callers
Function
checkConcurrentAppends
check that all known appends are present in a value, and are in order for each concurrent client.
MIT-6.824/src/kvraft/test_test.go:99
↓ 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
MIT-6.824/src/labgob/labgob.go:122
↓ 1 callers
Function
checkDefault1
(value reflect.Value, depth int, name string)
MIT-6.824/src/labgob/labgob.go:129
↓ 1 callers
Method
checkNoLeader
check that there's no leader
MIT-6.824/src/raft/config.go:347
↓ 1 callers
Method
checkTimeout
()
MIT-6.824/src/shardmaster/config.go:47
↓ 1 callers
Method
checkTimeout
()
MIT-6.824/src/shardkv/config.go:72
↓ 1 callers
Function
checkType
(t reflect.Type)
MIT-6.824/src/labgob/labgob.go:72
← previous
next →
101–200 of 376, ranked by callers