Fix short hand

This commit is contained in:
gaozengqi 2022-01-28 10:35:54 +08:00 committed by Jingyu Zhou
parent 697d075e20
commit 1419d1aab7
1 changed files with 2 additions and 2 deletions

View File

@ -2291,9 +2291,9 @@ ACTOR Future<Void> KVFileDump(std::string filename) {
StringRef kvFile(filename);
KeyValueStoreType type = KeyValueStoreType::END;
if (kvFile.endsWith(LiteralStringRef(".fdb")))
if (kvFile.endsWith(".fdb"_sr))
type = KeyValueStoreType::SSD_BTREE_V1;
else if (kvFile.endsWith(LiteralStringRef(".sqlite")))
else if (kvFile.endsWith(".sqlite"_sr))
type = KeyValueStoreType::SSD_BTREE_V2;
ASSERT(type != KeyValueStoreType::END);