Skip to content

Commit

Permalink
Check whether reads are serializable
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffa5 committed Sep 6, 2023
1 parent f6c7ed0 commit 0450e9a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app/app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,12 @@ namespace app
payload.range_end().size(),
payload.range_end());

if (!payload.serializable())
{
return ccf::grpc::make_error<etcdserverpb::RangeResponse>(
GRPC_STATUS_FAILED_PRECONDITION,
"linearizable reads are not yet supported");
}
if (payload.sort_order() != etcdserverpb::RangeRequest_SortOrder_NONE)
{
return ccf::grpc::make_error<etcdserverpb::RangeResponse>(
Expand Down

0 comments on commit 0450e9a

Please sign in to comment.