Skip to content

Commit

Permalink
[fix][store] remove useless code which coordinator push store operations
Browse files Browse the repository at this point in the history
  • Loading branch information
visualYJD committed Jan 15, 2025
1 parent 7ab571f commit 5efbcbc
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 509 deletions.
6 changes: 1 addition & 5 deletions src/coordinator/coordinator_control.h
Original file line number Diff line number Diff line change
Expand Up @@ -535,17 +535,13 @@ class CoordinatorControl : public MetaControl {
butil::Status GetOrphanRegion(int64_t store_id, std::map<int64_t, pb::common::RegionMetrics> &orphan_regions);

static bool CheckStoreOperationResult(pb::coordinator::RegionCmdType cmd_type, pb::error::Errno errcode);
void SendStoreOperation(const pb::common::Store &store, const pb::coordinator::StoreOperation &store_operation,
pb::coordinator_internal::MetaIncrement &meta_increment);
void TryToSendStoreOperations();

static butil::Status RpcSendPushStoreOperation(const pb::common::Location &location,
pb::push::PushStoreOperationRequest &request,
pb::push::PushStoreOperationResponse &response);

// get store operation
int GetStoreOperation(int64_t store_id, pb::coordinator::StoreOperation &store_operation);
int GetStoreOperationOfNotCreateForSend(int64_t store_id, pb::coordinator::StoreOperation &store_operation);
int GetStoreOperationOfCreateForSend(int64_t store_id, pb::coordinator::StoreOperation &store_operation);

// CleanStoreOperation
// in: store_id
Expand Down
Loading

0 comments on commit 5efbcbc

Please sign in to comment.