Separate split functionality from ShardMap
This commit is contained in:
parent
962767ea1c
commit
98206caf85
src/coordinator
26
src/coordinator/coordinator.hpp
Normal file
26
src/coordinator/coordinator.hpp
Normal 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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user