| … | … | @@ -1139,7 +1139,9 @@ void RocksStorage::loadAtoms(AtomSpace* as) |
| 1139 | 1139 | for (it->Seek("a@"); it->Valid() and it->key().starts_with("a@"); it->Next()) |
| 1140 | 1140 | { |
| 1141 | 1141 | try { |
| 1142 | | Handle h = Sexpr::decode_atom(it->value().ToString()); |
| 1142 | std::string satom = it->value().ToString(); |
| 1143 | size_t pos = satom.find('('); // skip over hash, if present |
| 1144 | Handle h = Sexpr::decode_atom(satom, pos); |
| 1143 | 1145 | h = add_nocheck(as, h); |
| 1144 | 1146 | // There's a trailing colon. Drop it. |
| 1145 | 1147 | const std::string& sidcolon = it->key().ToString().substr(2); |
| … | … | @@ -1215,7 +1217,8 @@ size_t RocksStorage::loadAtomsHeight( |
| 1215 | 1217 | // Get the matching satom string. |
| 1216 | 1218 | std::string satom; |
| 1217 | 1219 | _rfile->Get(rocksdb::ReadOptions(), "a@" + sid + ":", &satom); |
| 1218 | | Handle h = Sexpr::decode_atom(satom); |
| 1220 | size_t pos = satom.find('('); // skip over hash, if present |
| 1221 | Handle h = Sexpr::decode_atom(satom, pos); |
| 1219 | 1222 | |
| 1220 | 1223 | // Load the values, in frame-DAG order. |
| 1221 | 1224 | for (const auto& frit: frame_order) |