Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions adapter/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (r GRPCServer) RawPut(_ context.Context, req *pb.RawPutRequest) (*pb.RawPut
res, err := r.coordinator.Dispatch(m)
if err != nil {
return &pb.RawPutResponse{
CommitIndex: res.CommitIndex,
CommitIndex: uint64(0),
Success: false,
}, errors.WithStack(err)
}
Expand All @@ -88,7 +88,7 @@ func (r GRPCServer) RawDelete(ctx context.Context, req *pb.RawDeleteRequest) (*p
res, err := r.coordinator.Dispatch(m)
if err != nil {
return &pb.RawDeleteResponse{
CommitIndex: res.CommitIndex,
CommitIndex: uint64(0),
Success: false,
}, errors.WithStack(err)
}
Expand Down Expand Up @@ -122,7 +122,7 @@ func (r GRPCServer) Put(ctx context.Context, req *pb.PutRequest) (*pb.PutRespons
res, err := r.coordinator.Dispatch(reqs)
if err != nil {
return &pb.PutResponse{
CommitIndex: res.CommitIndex,
CommitIndex: uint64(0),
}, errors.WithStack(err)
}

Expand Down Expand Up @@ -163,7 +163,7 @@ func (r GRPCServer) Delete(ctx context.Context, req *pb.DeleteRequest) (*pb.Dele
res, err := r.coordinator.Dispatch(reqs)
if err != nil {
return &pb.DeleteResponse{
CommitIndex: res.CommitIndex,
CommitIndex: uint64(0),
}, errors.WithStack(err)
}

Expand Down
Binary file added elastickv
Binary file not shown.
Loading