Skip to content

Commit

Permalink
chore: resolve comments in pr 311
Browse files Browse the repository at this point in the history
Signed-off-by: Phoeniix Zhao <[email protected]>
  • Loading branch information
Phoenix500526 committed Jul 24, 2023
1 parent f869b44 commit 8433e51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xline/src/server/kv_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ where
range_revision: i64,
compacted_revision: i64,
) -> Result<(), tonic::Status> {
(range_revision >= compacted_revision)
(range_revision <= 0 || range_revision >= compacted_revision)
.then_some(())
.ok_or(tonic::Status::invalid_argument(format!(
"required revision {range_revision} has been compacted, compacted revision is {compacted_revision}"
Expand Down

0 comments on commit 8433e51

Please sign in to comment.