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

refactor: remove generated thrift srcs from repo #758

Merged
merged 6 commits into from
Feb 20, 2021

Conversation

neverchanje
Copy link
Contributor

@neverchanje neverchanje commented Feb 13, 2021

I find it's considerably hard to refactor the thrift stuff in rdsn, so I begin my refactoring on removing the thrift-generated files, so as to reduce the overall complexity.

Now the generated sources are placed under builder/thrift-gen, aka ${CMAKE_BINARY_DIR}/thrift-gen. They will be linked into the binary during compilation.

This PR still keeps replication.thrift, fd.thrift, dsn.layer2.thrift in their original place. They will be resolved in later PR.

In my long-term plan, I will split the large file "replication.thrift" into several smaller files, in order to improve the modularity.

This in turn allows us to separate cpp-client as a standalone project. Because we need to decouple the thrift structs that are the dependency of cpp-client with those that are irrelevant (like backup and duplication).

@neverchanje neverchanje reopened this Feb 13, 2021
levy5307
levy5307 previously approved these changes Feb 18, 2021
@levy5307 levy5307 merged commit ee1026d into XiaoMi:master Feb 20, 2021
@neverchanje neverchanje deleted the dsnlayer2 branch February 20, 2021 06:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants