Add minimum and maximum key for shard rsm prototype

This commit is contained in:
gvolfing 2022-08-04 11:20:19 +02:00
parent 0aab854e34
commit ee16954641

View File

@ -44,7 +44,6 @@ using memgraph::storage::PropertyValue;
namespace memgraph::tests::simulation {
using ShardRsmKey = std::vector<PropertyValue>;
;
struct StorageWriteRequest {
ShardRsmKey key;
@ -66,6 +65,8 @@ struct StorageGetResponse {
class StorageRsm {
std::map<ShardRsmKey, int> state_;
ShardRsmKey minimum_key_;
std::optional<ShardRsmKey> maximum_key_{std::nullopt};
public:
StorageGetResponse read(StorageGetRequest request) {