Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 42e214f

Browse files
committed
add MtmGetDisabledNodeMask() function
1 parent 7e93d70 commit 42e214f

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

state.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,3 +635,16 @@ MtmGetCurrentStatus()
635635
MtmUnlock();
636636
return status;
637637
}
638+
639+
/*
640+
* Mtm current status accessor.
641+
*/
642+
nodemask_t
643+
MtmGetDisabledNodeMask()
644+
{
645+
volatile nodemask_t disabledMask;
646+
MtmLock(LW_SHARED);
647+
disabledMask = Mtm->disabledNodeMask;
648+
MtmUnlock();
649+
return disabledMask;
650+
}

state.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,5 @@ extern void MtmRefreshClusterStatus(void);
3434

3535
extern int countZeroBits(nodemask_t mask, int nNodes);
3636

37-
extern MtmNodeStatus MtmGetCurrentStatus(void);
37+
extern MtmNodeStatus MtmGetCurrentStatus(void);
38+
extern nodemask_t MtmGetDisabledNodeMask(void);

0 commit comments

Comments
 (0)