mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-20 17:59:50 +00:00
update for new DB layout
This commit is contained in:
@ -76,7 +76,8 @@ void cmd_sync(const std::vector<std::string> &subArgs) {
|
||||
|
||||
for (auto levId : levIds) {
|
||||
auto ev = lookupEventByLevId(txn, levId);
|
||||
storageVector.insert(packed.created_at(), packed.id().substr(0, ne.idSize));
|
||||
PackedEventView packed(ev.buf);
|
||||
storageVector.insert(packed.created_at(), packed.id());
|
||||
}
|
||||
|
||||
LI << "Filter matches " << numEvents << " events";
|
||||
|
@ -161,7 +161,8 @@ void RelayServer::runNegentropy(ThreadPool<MsgNegentropy>::Thread &thr) {
|
||||
for (auto levId : view->levIds) {
|
||||
try {
|
||||
auto ev = lookupEventByLevId(txn, levId);
|
||||
view->storageVector.insert(packed.created_at(), packed.id().substr(0, view->ne.idSize));
|
||||
PackedEventView packed(ev.buf);
|
||||
view->storageVector.insert(packed.created_at(), packed.id());
|
||||
} catch (std::exception &) {
|
||||
// levId was deleted when query was paused
|
||||
}
|
||||
|
Reference in New Issue
Block a user