Skip to content

Commit

Permalink
IsPatchCompatible should check only memberSet passed in (main -> ce-m…
Browse files Browse the repository at this point in the history
…ain@104837)

[git-p4: depot-paths = "//dev/coherence-ce/main/": change = 104850]
  • Loading branch information
tmiddlet2666 committed Nov 23, 2023
1 parent 82c2e27 commit f7dd465
Showing 1 changed file with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2710,12 +2710,27 @@ public boolean isPatchCompatible(Member member, int nEncodedVersion)

public boolean isPatchCompatible(MemberSet setMembers, int nEncodedVersion)
{
MasterMemberSet setMaster = getClusterMemberSet();
if (setMembers.isEmpty())
{
return true;
}
return setMaster.isPatchCompatible(nEncodedVersion);

MasterMemberSet setMaster = getClusterMemberSet();
int[] anId = setMembers.toIdArray();

for (int i = 0; i < anId.length; i++)
{
if (anId[i] == 0)
{
continue;
}
if (!setMaster.isPatchCompatible(anId[i], nEncodedVersion))
{
return false;
}
}

return true;
}

/**
Expand Down

0 comments on commit f7dd465

Please sign in to comment.