Initialize Dbms before starting the network server
Reviewers: teon.banek, buda Reviewed By: teon.banek Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D805
This commit is contained in:
parent
212f6cfa98
commit
9a080ba024
@ -108,6 +108,9 @@ int main(int argc, char **argv) {
|
||||
<< stacktrace.dump() << std::endl;
|
||||
});
|
||||
|
||||
// Initialize bolt session data (Dbms and QueryEngine).
|
||||
session_data_t session_data;
|
||||
|
||||
// Initialize endpoint.
|
||||
endpoint_t endpoint;
|
||||
try {
|
||||
@ -129,9 +132,6 @@ int main(int argc, char **argv) {
|
||||
LOG(FATAL) << "Cannot listen on socket!";
|
||||
}
|
||||
|
||||
// Initialize bolt session data (Dbms and QueryEngine).
|
||||
session_data_t session_data;
|
||||
|
||||
// Initialize server.
|
||||
bolt_server_t server(std::move(socket), session_data);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user