Skip to content

Commit

Permalink
Update src/storage/redis_metadata.cc
Browse files Browse the repository at this point in the history
Co-authored-by: Twice <[email protected]>
  • Loading branch information
jjz921024 and PragmaTwice authored Jul 17, 2024
1 parent 2c62e2a commit e779372
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/storage/redis_metadata.cc
Original file line number Diff line number Diff line change
Expand Up @@ -338,9 +338,7 @@ bool HashMetadata::IsTTLFieldEncoded() const { return field_encoding == HashFiel

void HashMetadata::Encode(std::string *dst) const {
Metadata::Encode(dst);
if (IsTTLFieldEncoded()) {
PutFixed8(dst, uint8_t(field_encoding));
}
PutFixed8(dst, uint8_t(field_encoding));
}

rocksdb::Status HashMetadata::Decode(Slice *input) {
Expand Down

0 comments on commit e779372

Please sign in to comment.