File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed
Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -2029,19 +2029,15 @@ static int64 MtmGetSlotLag(int nodeId)
20292029 */
20302030bool MtmIsRecoveredNode (int nodeId )
20312031{
2032- if (!BIT_CHECK (Mtm -> disabledNodeMask , nodeId - 1 ))
2033- Assert (!MtmIsRecoverySession );
2034-
2035- return BIT_CHECK (Mtm -> disabledNodeMask , nodeId - 1 ) && MtmIsRecoverySession ;
2036- // if (BIT_CHECK(Mtm->disabledNodeMask, nodeId-1)) {
2037- // if (!MtmIsRecoverySession) {
2038- // MTM_ELOG(WARNING, "Node %d is marked as disabled but is not in recovery mode", nodeId);
2039- // }
2040- // return true;
2041- // } else {
2042- // MtmIsRecoverySession = false; /* recovery is completed */
2043- // return false;
2044- // }
2032+ if (BIT_CHECK (Mtm -> disabledNodeMask , nodeId - 1 )) {
2033+ if (!MtmIsRecoverySession ) {
2034+ MTM_ELOG (WARNING , "Node %d is marked as disabled but is not in recovery mode" , nodeId );
2035+ }
2036+ return true;
2037+ } else {
2038+ MtmIsRecoverySession = false; /* recovery is completed */
2039+ return false;
2040+ }
20452041}
20462042
20472043/*
You can’t perform that action at this time.
0 commit comments