-
Notifications
You must be signed in to change notification settings - Fork 18
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
DM-47612: Refactoring and simplifications in the Qserv worker replication service #879
Conversation
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.
Looks good, just minor comments. It does simplify the code significantly :)
@@ -86,55 +80,20 @@ class WorkerDeleteRequest : public WorkerRequest { | |||
*/ | |||
void setInfo(ProtocolResponseDelete& response) const; | |||
|
|||
bool execute() override; | |||
virtual bool execute() override; |
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.
This should just be override
without virtual
as the base class WorkerRequest
has virtual bool execute()
defined.
C++ style guide 5-44
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 point.
* @param response Protobuf response to be initialized | ||
*/ | ||
void setInfo(ProtocolResponseDirectorIndex& response) const; | ||
|
||
bool execute() override; | ||
virtual bool execute(); |
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.
Shouldn't this be override
instead of virtual
as execute()
is declared virtual
in WorkerRequest
?
@@ -83,27 +80,20 @@ class WorkerEchoRequest : public WorkerRequest { | |||
*/ | |||
void setInfo(ProtocolResponseEcho& response) const; | |||
|
|||
bool execute() override; | |||
virtual bool execute(); |
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.
Shouldn't this should be override
instead of virtual
?
@@ -83,56 +78,20 @@ class WorkerFindAllRequest : public WorkerRequest { | |||
*/ | |||
void setInfo(ProtocolResponseFindAll& response) const; | |||
|
|||
bool execute() override; | |||
virtual bool execute(); |
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.
Shouldn't it be override
?
@@ -91,59 +84,23 @@ class WorkerFindRequest : public WorkerRequest { | |||
*/ | |||
void setInfo(ProtocolResponseFind& response) const; | |||
|
|||
bool execute() override; | |||
virtual bool execute(); |
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.
Shouldn't it be override
?
@@ -102,86 +98,13 @@ class WorkerReplicationRequest : public WorkerRequest { | |||
*/ | |||
void setInfo(ProtocolResponseReplicate& response) const; | |||
|
|||
bool execute() override; | |||
virtual bool execute(); |
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.
Shouldn't it be override
?
@@ -92,7 +92,7 @@ class WorkerSqlRequest : public WorkerRequest { | |||
*/ | |||
void setInfo(ProtocolResponseSql& response) const; | |||
|
|||
bool execute() override; | |||
virtual bool execute(); |
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.
Shouldn't it be override
?
562ed4f
to
bc83e54
Compare
bc83e54
to
602123d
Compare
The parameter is no longer needed after refacttoring and simplifying a design and implementation of the worker service. Also cleaned empty lines in the worker code
602123d
to
e42b22b
Compare
No description provided.