update PutAppend spec

This commit is contained in:
kenctrl
2024-03-03 16:31:19 -05:00
parent d6f2a7fb5c
commit b6635d50e5

View File

@@ -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.
} }