[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: The secrets of Master Block

Status
Not open for further replies.
D

Dapeng Wu

Guest
mb_replEnabled can have multiple flags in the field. For a replication source database, it will have the SOURCE bit set (bit value of 1); and for the target database, it will have TARGE bit (bit value of 2) set. In some rare cases, there could be some other bits set to the field. For example, if a target is in the pre-transition state, it will also have the PRE-TRANSITION bit (bit value of 64) set. So mb_replEnabled of 66 means it's a TARGET database, and it's in PRE-TRANSITION state (66 = 2 + 64). If you just need to find out if a database is SOURCE or TARGET, you just need to check if bit (1) or bit (2) is set in the field -- note that we're talking about bitwise operations here.

Continue reading...
 
Status
Not open for further replies.
Top