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
↓ 1 callers
Method
makeSnapshot
制作快照
src/kvraft/snapshot.go:20
↓ 1 callers
Method
makeSnapshot
制作快照
src/shardkv_with_bug/snapshot.go:20
↓ 1 callers
Method
make_partition
Partition servers into 2 groups and put current leader in minority
src/kvraft/config.go:343
↓ 1 callers
Function
newBitset
data layout: bits 0-63 are in data[0], the next are in data[1], etc.
src/porcupine/bitset.go:10
↓ 1 callers
Function
nparallel
(phase string)
src/mrapps/mtiming.go:19
↓ 1 callers
Function
nparallel
(phase string)
src/mrapps/rtiming.go:17
↓ 1 callers
Function
nrand
()
src/shardctrler/client.go:24
↓ 1 callers
Function
nrand
()
src/shardkv/client.go:31
↓ 1 callers
Function
nrand
()
src/shardkv_with_bug/client.go:31
↓ 1 callers
Function
partitioner
repartition the servers periodically
src/kvraft/test_test.go:183
↓ 1 callers
Method
pastElectionTimeout
()
src/raft/leader_election.go:76
↓ 1 callers
Method
pastHeartbeatTimeout
()
src/raft/log_replication.go:7
↓ 1 callers
Method
popcnt
()
src/porcupine/bitset.go:46
↓ 1 callers
Method
processReq
(req reqMsg)
src/labrpc/labrpc.go:232
↓ 1 callers
Function
random_handles
Randomize server handles
src/shardctrler/config.go:24
↓ 1 callers
Function
random_handles
Randomize server handles
src/kvraft/config.go:37
↓ 1 callers
Method
readEndnameInfo
(endname interface{})
src/labrpc/labrpc.go:206
↓ 1 callers
Method
readPersist
restore previously persisted state.
src/raft/raft.go:171
↓ 1 callers
Method
removeShardHandler
(op Op)
src/shardkv/server.go:473
↓ 1 callers
Method
removeShardHandler
(op Op)
src/shardkv_with_bug/reshard.go:60
↓ 1 callers
Function
renumber
(events []Event)
src/porcupine/checker.go:92
↓ 1 callers
Method
resetHeartbeatTimer
()
src/raft/log_replication.go:13
↓ 1 callers
Method
resetTrackedIndex
()
src/raft/tracker.go:17
↓ 1 callers
Function
run_client
a client runs the function f and then signals it is done
src/kvraft/test_test.go:106
↓ 1 callers
Method
sendMsgToTester
通知tester(作用相当于状态机)接收这个日志消息,然后供状态机使用
src/raft/raft.go:717
↓ 1 callers
Method
sendRequestInstallSnapshot
(server int, args *RequestInstallSnapShotArgs, reply *RequestInstallSnapShotReply)
src/raft/snapshot.go:155
↓ 1 callers
Method
sendRequestVote
example code to send a RequestVoteRPC to a server. server is the index of the target server in rf.peers[]. expects RPC arguments in args. fills in *re
src/raft/raft.go:229
↓ 1 callers
Method
sendShard
(servers []*labrpc.ClientEnd, args *MoveShardsArgs, shardId int)
src/shardkv_with_bug/server.go:188
↓ 1 callers
Method
server
start a thread that listens for RPCs from worker.go
src/mr/coordinator.go:29
↓ 1 callers
Method
setlongreordering
(longrel bool)
src/raft/config.go:420
↓ 1 callers
Method
shardclerk
()
src/shardkv/config.go:292
↓ 1 callers
Method
shardclerk
()
src/shardkv_with_bug/config.go:292
↓ 1 callers
Method
ticker
()
src/raft/raft.go:790
↓ 1 callers
Function
unlift
(entry *node)
src/porcupine/checker.go:169
↓ 1 callers
Method
upConfigHandler
------------------------------------------------------handler部分------------------------------------------------------ 更新最新的config的handler
src/shardkv/server.go:438
↓ 1 callers
Method
updateConfig
更新最新的config的handler
src/shardkv_with_bug/reshard.go:4
↓ 1 callers
Function
usage
()
src/main/pbc.go:25
Method
AddShard
AddShard move shards from caller to this server
src/shardkv/server.go:420
Method
AddShard
AddShards move shards from caller to this server
src/shardkv_with_bug/reshard.go:26
Method
Append
(key string, value string)
src/kvraft/client.go:96
Method
AppendEntries2
nextIndex收敛速度优化:nextIndex跳跃算法,需搭配HandleAppendEntriesRPC2方法使用
src/raft/raft.go:561
Function
CallExample
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:44
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/shardctrler/config.go:205
Method
DecodeWithPrint
(id int, name string, e interface{})
src/labgob/labgob.go:59
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/shardctrler/config.go:221
Method
DisconnectClient
(ck *Clerk, from []int)
src/kvraft/config.go:252
Method
Example
Your code here -- RPC handlers for the worker to call. an example RPC handler. the RPC argument and reply types are defined in rpc.go.
src/mr/coordinator.go:21
Method
Get
(args *GetArgs, reply *GetReply)
src/kvraft/server.go:79
Method
Get
------------------------------------------------------RPC部分----------------------------------------------------------
src/shardkv/server.go:359
Method
Get
(args *GetArgs, reply *GetReply)
src/shardkv_with_bug/server.go:338
Method
GetCount
get a server's count of incoming RPCs.
src/labrpc/labrpc.go:378
Method
GetLogEntries
()
src/raft/log.go:53
Method
GetSnapshot
()
src/raft/raft.go:845
Method
HandleAppendEntriesRPC
方法一:定义一个心跳兼日志同步处理器,这个方法是Candidate和Follower节点的处理 nextIndex递减算法 func (rf *Raft) HandleAppendEntriesRPC2(args *RequestAppendEntriesArgs, reply *RequestA
src/raft/log_replication.go:80
Method
HandleHeartbeatRPC
定义一个心跳兼日志同步处理器,这个方法是Candidate和Follower节点的处理
src/raft/leader_election.go:104
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/shardctrler/server.go:129
Method
Kill
()
src/raft/util.go:67
Method
Leave
(args *LeaveArgs, reply *LeaveReply)
src/shardctrler/server.go:185
Method
Len
for sorting by key.
src/main/mrsequential.go:21
Method
Len
()
src/porcupine/checker.go:31
Method
Less
(i, j int)
src/main/mrsequential.go:23
Method
Less
(i, j int)
src/porcupine/checker.go:39
Method
LogSize
Maximum log size across all servers
src/shardctrler/config.go:67
Function
MakeCoordinator
create a Coordinator. main/mrcoordinator.go calls this function. nReduce is the number of reduce tasks to use.
src/mr/coordinator.go:59
Function
Map
(filename string, contents string)
src/mrapps/jobcount.go:22
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 conten
src/mrapps/wc.go:19
Function
Map
(filename string, contents string)
src/mrapps/nocrash.go:26
Function
Map
The map function is called once for each file of input. This map function just returns 1 for each file
src/mrapps/early_exit.go:19
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/shardctrler/server.go:237
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:199
Method
PutAppend
(args *PutAppendArgs, reply *PutAppendReply)
src/shardkv/server.go:396
Method
PutAppend
(args *PutAppendArgs, reply *PutAppendReply)
src/shardkv_with_bug/server.go:408
Method
Query
(args *QueryArgs, reply *QueryReply)
src/shardctrler/server.go:289
Function
Reduce
(key string, values []string)
src/mrapps/jobcount.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:37
Function
Reduce
(key string, values []string)
src/mrapps/nocrash.go:37
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/early_exit.go:28
Function
Reduce
(key string, values []string)
src/mrapps/mtiming.go:81
Function
Reduce
(key string, values []string)
src/mrapps/rtiming.go:78
← previous
next →
301–400 of 548, ranked by callers