Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

refactor: separate files from replication.thrift #760

Merged
merged 9 commits into from
Feb 23, 2021

Conversation

neverchanje
Copy link
Contributor

@neverchanje neverchanje commented Feb 20, 2021

This PR separates the replication.thrift into multiple files:

  • src/common/backup.thrift
  • src/common/bulkload.thrift
  • src/common/consensus.thrift
  • src/common/duplication.thrift
  • src/common/meta_admin.thrift
  • src/common/metadata.thrift
  • src/common/partition_split.thrift
  • src/common/replica_admin.thrift

The file names are descriptive for their content.

backup.thrift / bulkload.thrift / duplication.thrift / partition_split.thrift include the RPCs for the corresponding feature.

consensus.thrift includes the structs for PacificA protocol.

meta_admin.thrift and replica_admin.thrift include the RPCs that can be called by clients to operate on either MetaServer or ReplicaServer for administrative purposes.

metadata.thrift is for structs that can be used for multiple modules. For example, replica_configuration are used by bulkload.thrift and consensus.thrift. They both include "metadata.thrift".

@neverchanje neverchanje reopened this Feb 20, 2021
@neverchanje neverchanje changed the title refactor: seperate files from replication.thrift refactor: separate files from replication.thrift Feb 20, 2021
foreverneverer
foreverneverer previously approved these changes Feb 23, 2021
src/common/CMakeLists.txt Outdated Show resolved Hide resolved
@neverchanje neverchanje merged commit c057d35 into XiaoMi:master Feb 23, 2021
@neverchanje neverchanje deleted the simplekvthrift branch February 23, 2021 06:11
@hycdong hycdong added the 2.2.0 label Aug 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants