Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PKUFlyingPig/MIT6.824
/ functions
Functions
373 in github.com/PKUFlyingPig/MIT6.824
⨍
Functions
373
◇
Types & classes
84
↓ 1 callers
Function
random_handles
Randomize server handles
src/shardmaster/config.go:24
↓ 1 callers
Function
random_handles
Randomize server handles
src/kvraft/config.go:34
↓ 1 callers
Method
readEndnameInfo
(endname interface{})
src/labrpc/labrpc.go:190
↓ 1 callers
Method
readPersist
restore previously persisted state.
src/raft/raft.go:126
↓ 1 callers
Function
renumber
(events []Event)
src/porcupine/checker.go:87
↓ 1 callers
Function
run_client
a client runs the function f and then signals it is done
src/kvraft/test_test.go:47
↓ 1 callers
Method
sendAppendEntries
(server int, args *AppendEntriesArgs, reply *AppendEntriesReply)
src/raft/raft.go:252
↓ 1 callers
Method
sendRequestVote
example code to send a RequestVote RPC to a server. server is the index of the target server in rf.peers[]. expects RPC arguments in args. fills in *
src/raft/raft.go:328
↓ 1 callers
Method
server
start a thread that listens for RPCs from worker.go
src/mr/master.go:125
↓ 1 callers
Method
setlongreordering
(longrel bool)
src/raft/config.go:296
↓ 1 callers
Method
shardclerk
()
src/shardkv/config.go:289
↓ 1 callers
Method
startElection
candidate starts an election
src/raft/raft.go:567
↓ 1 callers
Function
unlift
(entry *node)
src/porcupine/checker.go:164
↓ 1 callers
Function
usage
()
src/main/pbc.go:25
Method
AllocateTask
(args *WorkerArgs, reply *WorkerReply)
src/mr/master.go:42
Method
AppendEntries
AppendEntries RPC handler
src/raft/raft.go:184
Function
CallExample
example function to show how to make an RPC call to the master. the RPC argument and reply types are defined in rpc.go.
src/mr/worker.go:183
Function
CheckEvents
(model Model, history []Event)
src/porcupine/porcupine.go:23
Function
CheckEventsTimeout
timeout = 0 means no timeout if this operation times out, then a false positive is possible
src/porcupine/porcupine.go:30
Function
CheckEventsVerbose
timeout = 0 means no timeout if this operation times out, then a false positive is possible
src/porcupine/porcupine.go:37
Function
CheckOperations
(model Model, history []Operation)
src/porcupine/porcupine.go:5
Function
CheckOperationsTimeout
timeout = 0 means no timeout if this operation times out, then a false positive is possible
src/porcupine/porcupine.go:12
Function
CheckOperationsVerbose
timeout = 0 means no timeout if this operation times out, then a false positive is possible
src/porcupine/porcupine.go:19
Method
ConnectClient
(ck *Clerk, to []int)
src/shardmaster/config.go:205
Function
DPrintf
(format string, a ...interface{})
src/kvraft/server.go:14
Function
DefaultDescribeOperation
(input interface{}, output interface{})
src/porcupine/model.go:63
Function
DefaultDescribeState
(state interface{})
src/porcupine/model.go:67
Method
DisconnectClient
(ck *Clerk, from []int)
src/shardmaster/config.go:221
Method
DisconnectClient
(ck *Clerk, from []int)
src/kvraft/config.go:248
Method
Example
an example RPC handler. the RPC argument and reply types are defined in rpc.go.
src/mr/master.go:117
Method
Get
(args *GetArgs, reply *GetReply)
src/kvraft/server.go:41
Method
Get
(args *GetArgs, reply *GetReply)
src/shardkv/server.go:32
Method
GetCount
get a server's count of incoming RPCs.
src/labrpc/labrpc.go:362
Method
Handler1
(args string, reply *int)
src/labrpc/test_test.go:23
Method
Handler2
(args int, reply *string)
src/labrpc/test_test.go:30
Method
Handler3
(args int, reply *int)
src/labrpc/test_test.go:37
Method
Handler4
args is a pointer
src/labrpc/test_test.go:45
Method
Handler5
args is a not pointer
src/labrpc/test_test.go:50
Method
Handler6
(args string, reply *int)
src/labrpc/test_test.go:54
Method
Handler7
(args int, reply *string)
src/labrpc/test_test.go:60
Method
Join
(args *JoinArgs, reply *JoinReply)
src/shardmaster/server.go:27
Method
Leave
(args *LeaveArgs, reply *LeaveReply)
src/shardmaster/server.go:31
Method
Len
for sorting by key.
src/main/mrsequential.go:21
Method
Len
for sorting by key.
src/mr/worker.go:28
Method
Len
()
src/porcupine/checker.go:31
Method
Less
(i, j int)
src/main/mrsequential.go:23
Method
Less
(i, j int)
src/mr/worker.go:30
Method
Less
(i, j int)
src/porcupine/checker.go:39
Method
LogSize
Maximum log size across all servers
src/shardmaster/config.go:67
Function
MakeMaster
create a Master. main/mrmaster.go calls this function. nReduce is the number of reduce tasks to use.
src/mr/master.go:153
Function
Map
The map function is called once for each file of input. The first argument is the name of the input file, and the second is the file's complete conte
src/mrapps/wc.go:21
Function
Map
(filename string, contents string)
src/mrapps/nocrash.go:26
Function
Map
(filename string, contents string)
src/mrapps/mtiming.go:64
Function
Map
(filename string, contents string)
src/mrapps/rtiming.go:62
Function
Map
The mapping function is called once for each piece of the input. In this framework, the key is the name of the file that is being processed, and the v
src/mrapps/indexer.go:20
Function
Map
(filename string, contents string)
src/mrapps/crash.go:34
Method
Move
(args *MoveArgs, reply *MoveReply)
src/shardmaster/server.go:35
Function
NoPartition
(history []Operation)
src/porcupine/model.go:51
Function
NoPartitionEvent
(history []Event)
src/porcupine/model.go:55
Method
PutAppend
(args *PutAppendArgs, reply *PutAppendReply)
src/kvraft/server.go:45
Method
PutAppend
(args *PutAppendArgs, reply *PutAppendReply)
src/shardkv/server.go:36
Method
Query
(args *QueryArgs, reply *QueryReply)
src/shardmaster/server.go:39
Method
ReceiveFinishedMap
Your code here -- RPC handlers for the worker to call.
src/mr/master.go:26
Method
ReceiveFinishedReduce
(args *WorkerArgs, reply *WorkerReply)
src/mr/master.go:34
Function
Reduce
The reduce function is called once for each key generated by the map tasks, with a list of all the values created for that key by any map task.
src/mrapps/wc.go:41
Function
Reduce
(key string, values []string)
src/mrapps/nocrash.go:37
Function
Reduce
(key string, values []string)
src/mrapps/mtiming.go:81
Function
Reduce
(key string, values []string)
src/mrapps/rtiming.go:78
Function
Reduce
The reduce function is called once for each key generated by Map, with a list of that key's string value (merged across all inputs). The return value
src/mrapps/indexer.go:36
Function
Reduce
(key string, values []string)
src/mrapps/crash.go:45
Function
RegisterName
(name string, value interface{})
src/labgob/labgob.go:63
Method
RequestVote
example RequestVote RPC handler.
src/raft/raft.go:260
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:53
Function
ShallowEqual
(state1, state2 interface{})
src/porcupine/model.go:59
Method
SnapshotSize
()
src/raft/persister.go:66
Method
Swap
(i, j int)
src/main/mrsequential.go:22
Method
Swap
(i, j int)
src/mr/worker.go:29
Method
Swap
(i, j int)
src/porcupine/checker.go:35
Function
TestBackup2B
(t *testing.T)
src/raft/test_test.go:371
Function
TestBasic
(t *testing.T)
src/shardmaster/test_test.go:80
Function
TestBasic
(t *testing.T)
src/labrpc/test_test.go:69
Function
TestBasic3A
(t *testing.T)
src/kvraft/test_test.go:448
Function
TestBasicAgree2B
(t *testing.T)
src/raft/test_test.go:89
Function
TestBenchmark
(t *testing.T)
src/labrpc/test_test.go:568
Function
TestBytes
test net.GetTotalBytes()
src/labrpc/test_test.go:221
Function
TestCapital
make sure we check capitalization labgob prints one warning during this test.
src/labgob/test_test.go:119
Function
TestChallenge1Concurrent
(t *testing.T)
src/shardkv/test_test.go:744
Function
TestChallenge1Delete
optional test to see whether servers are deleting shards for which they are no longer responsible.
src/shardkv/test_test.go:663
Function
TestChallenge2Partial
optional test to see whether servers can handle operations on shards that have been received as a part of a config migration when the entire migratio
src/shardkv/test_test.go:887
Function
TestChallenge2Unaffected
optional test to see whether servers can handle shards that are not affected by a config change while the config change is underway
src/shardkv/test_test.go:817
Function
TestConcurrent1
(t *testing.T)
src/shardkv/test_test.go:297
Function
TestConcurrent2
this tests the various sources from which a re-starting group might need to fetch shard contents.
src/shardkv/test_test.go:378
Function
TestConcurrent3A
(t *testing.T)
src/kvraft/test_test.go:453
Function
TestConcurrentMany
test RPCs from concurrent ClientEnds
src/labrpc/test_test.go:275
Function
TestConcurrentOne
test concurrent RPCs from a single ClientEnd
src/labrpc/test_test.go:386
Function
TestConcurrentStarts2B
(t *testing.T)
src/raft/test_test.go:232
Function
TestCount2B
(t *testing.T)
src/raft/test_test.go:443
Function
TestCounts
test net.GetCount()
src/labrpc/test_test.go:185
Function
TestDefault
check that we warn when someone sends a default value over RPC but the target into which we're decoding holds a non-default value, which GOB seems no
src/labgob/test_test.go:146
Function
TestDisconnect
does net.Enable(endname, false) really disconnect a client?
src/labrpc/test_test.go:146
← previous
next →
201–300 of 373, ranked by callers