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