memgraph/src/database
Marin Tomic 8c7b87d8b0 Cleanup BFS subcursors using transactional cache clean-up
Summary:
Before I wrongly assumed `Shutdown` will always be called on Cursors and
removed BFS subcursors there. Now it is done using transactional cache clean-up
mechanism. There's a separate clean-up for `BfsSubcursorStorage` (for actual
subcursors) and `BfsRpcServer` (for database accessors created by the server).

I've changed `BfsRpcServer` to have a `GraphDbAccessor` per transaction,
instead of per `BfsSubcursor`. Mainly because there is no reliable way to check
if the transaction tied to the accessor has expired as it is not safe to call
`transaction_id` method (since `GraphDbAccessor` is holding only a reference to
`Transaction` object).

Reviewers: teon.banek, mferencevic

Reviewed By: teon.banek

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D1792
2019-01-14 17:31:20 +01:00
..
distributed Cleanup BFS subcursors using transactional cache clean-up 2019-01-14 17:31:20 +01:00
single_node Add storage stat for single node 2018-11-15 11:53:03 +01:00
single_node_ha Issue NO_OP StateDeltas on leader change 2019-01-04 10:12:32 +01:00
graph_db_accessor.hpp Prepare codebase for high availability 2018-10-30 10:58:50 +01:00
graph_db.hpp Prepare codebase for high availability 2018-10-30 10:58:50 +01:00