Separate split functionality from ShardMap

This commit is contained in:
Tyler Neely 2022-07-25 10:38:50 +00:00
parent 962767ea1c
commit 98206caf85
2 changed files with 26 additions and 3 deletions

View File

@ -0,0 +1,26 @@
// Copyright 2022 Memgraph Ltd.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt; by using this file, you agree to be bound by the terms of the Business Source
// License, and you may not use this file except in compliance with the Business Source License.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the Apache License, Version 2.0, included in the file
// licenses/APL.txt.
#pragma once
#include "coordinator/shard_map.hpp"
namespace memgraph::coordinator {
class Coordinator {
ShardMap shard_map_;
public:
/// This splits the previous shard
bool SplitShard(uint64_t previous_shard_map_version, Label label, CompoundKey split_key);
};
} // namespace memgraph::coordinator

View File

@ -47,9 +47,6 @@ class ShardMap {
// TODO(tyler) ask Kostas if this would ever actually be useful
Shard GetShardForKey(Label label, CompoundKey key);
/// This splits the previous shard
bool SplitShard(uint64_t previous_shard_map_version, Label label, CompoundKey split_key);
};
} // namespace memgraph::coordinator