Skip to content

Commit 0e25a5b

Browse files
committed
Change to English comments
1 parent 0cdad27 commit 0e25a5b

2 files changed

Lines changed: 3 additions & 13 deletions

File tree

src/storage/src/redis_strings.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1671,14 +1671,14 @@ rocksdb::Status Redis::GetType(const storage::Slice& key, enum DataType& type) {
16711671
BaseMetaKey base_meta_key(key);
16721672
rocksdb::Status s = db_->Get(default_read_options_, handles_[kMetaCF], base_meta_key.Encode(), &meta_value);
16731673
if (s.ok()) {
1674-
// 检查键是否已过期
1674+
// Check if key has expired
16751675
if (ExpectedStale(meta_value)) {
1676-
type = DataType::kNones; // 如果键已过期,返回"none"类型
1676+
type = DataType::kNones; // If key has expired, return "none" type
16771677
} else {
16781678
type = static_cast<enum DataType>(static_cast<uint8_t>(meta_value[0]));
16791679
}
16801680
} else {
1681-
type = DataType::kNones; // 如果键不存在,返回"none"类型
1681+
type = DataType::kNones; // If key doesn't exist, return "none" type
16821682
}
16831683
return Status::OK();
16841684
}

src/storage/src/storage.cc

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1514,16 +1514,6 @@ Status Storage::GetType(const std::string& key, enum DataType& type) {
15141514
return Status::OK();
15151515
}
15161516

1517-
Status Storage::Type(const std::string& key, std::vector<std::string>& types) {
1518-
types.clear();
1519-
DataType type;
1520-
Status s = GetType(key, type);
1521-
if (s.ok()) {
1522-
types.push_back(DataTypeToString(type));
1523-
}
1524-
return s;
1525-
}
1526-
15271517
Status Storage::Keys(const DataType& data_type, const std::string& pattern, std::vector<std::string>* keys) {
15281518
keys->clear();
15291519
std::vector<DataType> types;

0 commit comments

Comments
 (0)