update PutAppend spec
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
package kvraft
|
||||
|
||||
import (
|
||||
"6.5840/labgob"
|
||||
"6.5840/labrpc"
|
||||
"6.5840/raft"
|
||||
"log"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
|
||||
"6.5840/labgob"
|
||||
"6.5840/labrpc"
|
||||
"6.5840/raft"
|
||||
)
|
||||
|
||||
const Debug = false
|
||||
@@ -18,7 +19,6 @@ func DPrintf(format string, a ...interface{}) (n int, err error) {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
type Op struct {
|
||||
// Your definitions here.
|
||||
// Field names must start with capital letters,
|
||||
@@ -37,11 +37,12 @@ type KVServer struct {
|
||||
// Your definitions here.
|
||||
}
|
||||
|
||||
|
||||
func (kv *KVServer) Get(args *GetArgs, reply *GetReply) {
|
||||
// Your code here.
|
||||
}
|
||||
|
||||
// unlike in lab 2, neither Put nor Append should return a value.
|
||||
// this is already reflected in the PutAppendReply struct.
|
||||
func (kv *KVServer) PutAppend(args *PutAppendArgs, reply *PutAppendReply) {
|
||||
// Your code here.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user