Skip to content

Commit

Permalink
make the error msg consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
jjz921024 committed Jan 12, 2025
1 parent 7306231 commit eebf29c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storage/redis_db.cc
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ rocksdb::Status Database::Expire(engine::Context &ctx, const Slice &user_key, ui
if (!s.ok()) return s;
redis::Hash hash_db(storage_, namespace_);
if (hash_db.GetValidFieldCount(ctx, ns_key, hash_metadata) == 0) {
return rocksdb::Status::NotFound("no element found");
return rocksdb::Status::NotFound("no elements");
}
}
if (metadata.expire == timestamp) return rocksdb::Status::OK();
Expand Down

0 comments on commit eebf29c

Please sign in to comment.