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
main
mrambacher 3 years ago committed by Facebook GitHub Bot
parent 981e8c621f
commit 7d7085c4e8
  1. 5
      util/slice.cc

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

Loading…
Cancel
Save