Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jjz921024 committed Aug 13, 2024
1 parent d80fb04 commit 50b94b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storage/redis_metadata.cc
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ rocksdb::Status HashMetadata::Decode(Slice *input) {
if (!GetFixed8(input, reinterpret_cast<uint8_t *>(&field_encoding))) {
return rocksdb::Status::InvalidArgument(kErrMetadataTooShort);
}
if (uint8_t(field_encoding) > 1) {
if (field_encoding > HashSubkeyEncoding::VALUE_WITH_TTL) {
return rocksdb::Status::InvalidArgument("unexpected subkey encoding version");
}
}
Expand Down

0 comments on commit 50b94b2

Please sign in to comment.