-
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
Add AlterEdgeProcessor, GetEdgeProcessor, RemoveEdgeProcessor and UTs #346
Conversation
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.
Well done~ Thanks for your quick response!
folly::SharedMutex::ReadHolder rHolder(LockUtils::edgeLock()); | ||
std::string val; | ||
std::string edgeKey = MetaServiceUtils::schemaEdgeKey(req.get_space_id(), | ||
req.get_edge_type(), |
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.
alignment
} | ||
|
||
StatusOr<std::vector<std::string>> RemoveEdgeProcessor::getEdgeKeys(GraphSpaceID id, | ||
const std::string& edgeName) { |
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.
alignment
src/meta/test/ProcessorTest.cpp
Outdated
auto addItem = cpp2::AlterTagItem(FRAGILE, | ||
cpp2::AlterTagOp::ADD, | ||
auto addItem = cpp2::AlterSchemaItem(FRAGILE, | ||
cpp2::AlterSchemaOp::ADD, |
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.
alignment
onFinished(); | ||
return; | ||
} | ||
folly::SharedMutex::WriteHolder wHolder(LockUtils::tagLock()); |
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.
Use edgeLock
for (auto& col : cols) { | ||
auto retCode = MetaServiceUtils::alterColumnDefs(columns, col, edgeItem.op); | ||
if (retCode != cpp2::ErrorCode::SUCCEEDED) { | ||
LOG(WARNING) << "Alter edge error"; |
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.
Output the retCode in LOG
Rename the issue's title by the way. It not only adds UTs. |
Unit testing passed. |
LGTM now. Fix the conflicts |
modify SET to CHANGE
Unit testing failed. |
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.
LGTM. Well done.
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.
LGTM
Unit testing passed. |
…vesoft-inc#346) * add AlterEdgeProcessor, GetEdgeProcessor, RemoveEdgeProcessor * address dangleptr's comment * rebase master modify SET to CHANGE * fix UT
…vesoft-inc#346) * add AlterEdgeProcessor, GetEdgeProcessor, RemoveEdgeProcessor * address dangleptr's comment * rebase master modify SET to CHANGE * fix UT
Co-authored-by: Shylock Hg <[email protected]> Co-authored-by: Sophie <[email protected]> Co-authored-by: sworduo <[email protected]> Co-authored-by: Shylock Hg <[email protected]> Co-authored-by: Sophie <[email protected]>
add AlterEdgeProcessor, GetEdgeProcessor, RemoveEdgeProcessor