-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor schemaManager to support ServerBasedSchemaManager #241
Conversation
Unit testing passed. |
src/meta/SchemaManager.h
Outdated
std::string name_; | ||
nebula::cpp2::ValueType type_; | ||
}; | ||
static std::unique_ptr<SchemaManager> instance(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A static get
or instance
often refers to a singleton, here create
might be a better name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good suggestion.
src/meta/SchemaManager.h
Outdated
GraphSpaceID space, EdgeType edge, int32_t ver = -1) override; | ||
|
||
std::shared_ptr<const SchemaProviderIf> getEdgeSchema( | ||
const folly::StringPiece spaceName, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
folly::Range<const char*>
, aka. folly::StringPiece
, is already immutable, in terms of it's owner. So it not necessary to make the parameter constant. Besides, it makes little sence to make the parameter constant if it's passed by value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good proposal.
Unit testing failed. |
Jenkins go |
Unit testing passed. |
@dutor Please check the changes inside graph module. If there is no problems, i will merge it later. |
Unit testing passed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fabulous!
Unit testing passed. |
…c#241) * Refactor schemaManager to support ServerBasedSchemaManager * Rebase on master
…c#241) * Refactor schemaManager to support ServerBasedSchemaManager * Rebase on master
Co-authored-by: jimingquan <[email protected]>
Refactor schemaManager to support ServerBasedSchemaManager which will be updated by meta client. It is the foundation about SchemaManager on Meta server (#170 )
The main changes include: