#ifndef MEMGRAPH_TRANSACTION_TRANSACTION_HPP #define MEMGRAPH_TRANSACTION_TRANSACTION_HPP #include #include template struct Transaction { Transaction(id_t id, std::vector active) : id(id), active(std::move(active)) {} // index of this transaction id_t id; // the ids of the currently active transactions used by the mvcc // implementation for snapshot isolation std::vector active; bool operator<(const Transaction& rhs) { return id < rhs.id; } }; #endif