You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per the comment the props map is modified only when "@:" is not found. But then at != colon + 1 seemingly indicates it is searching for ":@"? Is the comment incorrect or the code. I'm confused.
namespaceROCKSDB_NAMESPACE {
staticvoidAddProperty(std::unordered_map<std::string, std::string> *props, const std::string& name) {
size_t colon = name.find(":");
if (colon != std::string::npos && colon > 0 && colon < name.length() - 1) {
// If we found a "@:", then this property was a build-time substitution that failed. Skip itsize_t at = name.find("@", colon);
if (at != colon + 1) {
// Everything before the colon is the name, after is the value
(*props)[name.substr(0, colon)] = name.substr(colon + 1);
}
}
}
The text was updated successfully, but these errors were encountered:
ksolana
added a commit
to ksolana/rocksdb
that referenced
this issue
Feb 8, 2025
As per the comment the props map is modified only when "@:" is not found. But then
at != colon + 1
seemingly indicates it is searching for ":@"? Is the comment incorrect or the code. I'm confused.The text was updated successfully, but these errors were encountered: