Fix LITE build for SliceTransform::AsString (#9460)

Summary: Pull Request resolved: https://github.com/facebook/rocksdb/pull/9460

Reviewed By: pdillinger

Differential Revision: D33830275

Pulled By: mrambacher

fbshipit-source-id: 65dd1496e0291013085fdc3cce6ae3bf6dc955b5
This commit is contained in:
mrambacher 2022-01-27 16:57:03 -08:00 committed by Facebook GitHub Bot
parent 981e8c621f
commit 7d7085c4e8

View File

@ -279,13 +279,14 @@ Status SliceTransform::CreateFromString(
}
std::string SliceTransform::AsString() const {
#ifndef ROCKSDB_LITE
if (HasRegisteredOptions()) {
ConfigOptions opts;
opts.delimiter = ";";
return ToString(opts);
} else {
return GetId();
}
#endif // ROCKSDB_LITE
return GetId();
}
// 2 small internal utility functions, for efficient hex conversions