You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pegasus.apache.org by GitBox <gi...@apache.org> on 2022/07/19 06:53:05 UTC
[GitHub] [incubator-pegasus] foreverneverer commented on a diff in pull request #1065: fix: fix recovery verification bug
foreverneverer commented on code in PR #1065:
URL: https://github.com/apache/incubator-pegasus/pull/1065#discussion_r924124025
##########
src/rdsn/src/meta/server_state.h:
##########
@@ -353,6 +353,41 @@ class server_state
const std::vector<std::string> &keys,
const std::vector<std::string> &values);
+ bool app_info_compatible_equal(const app_info &l, const app_info &r) const
+ {
+ if (l.status != r.status) {
+ return false;
+ }
+ if (l.app_type != r.app_type) {
+ return false;
+ }
+ if (l.app_name != r.app_name) {
+ return false;
+ }
+ if (l.app_id != r.app_id) {
+ return false;
+ }
+ if (l.partition_count != r.partition_count) {
+ return false;
+ }
+ if (l.is_stateful != r.is_stateful) {
+ return false;
+ }
+ if (l.max_replica_count != r.max_replica_count) {
+ return false;
+ }
+ if (l.expire_second != r.expire_second) {
+ return false;
+ }
+ if (l.create_second != r.create_second) {
+ return false;
+ }
+ if (l.drop_second != r.drop_second) {
+ return false;
+ }
Review Comment:
```suggestion
if (l.status != r.status || l.app_type != r.app_type || ... || ... ...) {
return false;
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@pegasus.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pegasus.apache.org
For additional commands, e-mail: dev-help@pegasus.apache.org