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:
parent
981e8c621f
commit
7d7085c4e8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user