Skip to content

Commit 986fd08

Browse files
authored
fix(interactive): fix hqps ci (#4567)
Fixes
1 parent 8abd636 commit 986fd08

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

flex/engines/graph_db/database/graph_db.cc

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,15 +479,17 @@ void GraphDB::openWalAndCreateContexts(const GraphDBConfig& config,
479479
}
480480
VLOG(1) << "Using wal uri: " << wal_uri;
481481

482-
auto wal_parser = WalParserFactory::CreateWalParser(wal_uri);
483-
ingestWals(*wal_parser, data_dir, thread_num_);
484482
for (int i = 0; i < thread_num_; ++i) {
485483
new (&contexts_[i])
486484
SessionLocalContext(*this, data_dir, i, allocator_strategy,
487485
WalWriterFactory::CreateWalWriter(wal_uri));
488-
contexts_[i].logger->open(wal_uri, i);
489486
}
487+
auto wal_parser = WalParserFactory::CreateWalParser(wal_uri);
488+
ingestWals(*wal_parser, data_dir, thread_num_);
490489

490+
for (int i = 0; i < thread_num_; ++i) {
491+
contexts_[i].logger->open(wal_uri, i);
492+
}
491493
initApps(graph_.schema().GetPlugins());
492494
VLOG(1) << "Successfully restore load plugins";
493495
}

0 commit comments

Comments
 (0)