You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by zh...@apache.org on 2022/06/02 06:54:05 UTC
[geode] 01/01: GEODE-10350: volunteerForPrimary should proceed when being elector or knowing elector
This is an automated email from the ASF dual-hosted git repository.
zhouxj pushed a commit to branch feature/GEODE-10350
in repository https://gitbox.apache.org/repos/asf/geode.git
commit 53b3a864082731612b8384e41f7de6cca9c9a2c1
Author: zhouxh <gz...@pivotal.io>
AuthorDate: Wed Jun 1 23:53:23 2022 -0700
GEODE-10350: volunteerForPrimary should proceed when being elector or knowing elector
---
.../src/main/java/org/apache/geode/internal/cache/BucketAdvisor.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/geode-core/src/main/java/org/apache/geode/internal/cache/BucketAdvisor.java b/geode-core/src/main/java/org/apache/geode/internal/cache/BucketAdvisor.java
index e6dcd3fb8f..233cc2544a 100755
--- a/geode-core/src/main/java/org/apache/geode/internal/cache/BucketAdvisor.java
+++ b/geode-core/src/main/java/org/apache/geode/internal/cache/BucketAdvisor.java
@@ -990,7 +990,7 @@ public class BucketAdvisor extends CacheDistributionAdvisor {
*/
public void volunteerForPrimary() {
InternalDistributedMember elector = primaryElector;
- if (elector != null && regionAdvisor.hasPartitionedRegion(elector)) {
+ if (elector != null && !regionAdvisor.hasPartitionedRegion(elector)) {
// another server will determine the primary node
return;
}