2012-02-05 11:35:58 -05:00
|
|
|
/****************************************************************
|
|
|
|
* *
|
2024-07-19 11:43:27 -04:00
|
|
|
* Copyright 2001, 2013 Fidelity Information Services, Inc *
|
2012-02-05 11:35:58 -05:00
|
|
|
* *
|
|
|
|
* This source code contains the intellectual property *
|
|
|
|
* of its copyright holder(s), and is made available *
|
|
|
|
* under a license. If you do not know the terms of *
|
|
|
|
* the license, please stop and do not read further. *
|
|
|
|
* *
|
|
|
|
****************************************************************/
|
|
|
|
|
|
|
|
#ifndef __WCS_MM_RECOVER_H__
|
|
|
|
#define __WCS_MM_RECOVER_H__
|
|
|
|
|
|
|
|
#define MM_DBFILEXT_REMAP_IF_NEEDED(csa, reg) \
|
|
|
|
{ \
|
|
|
|
if (csa->total_blks != csa->ti->total_blks) \
|
|
|
|
wcs_mm_recover(reg); \
|
2024-07-19 11:43:27 -04:00
|
|
|
assert(!csa->now_crit || (csa->total_blks == csa->ti->total_blks)); \
|
2012-02-05 11:35:58 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
#define CHECK_MM_DBFILEXT_REMAP_IF_NEEDED(csa, reg) \
|
|
|
|
{ \
|
|
|
|
if (dba_mm == reg->dyn.addr->acc_meth) \
|
|
|
|
{ \
|
|
|
|
MM_DBFILEXT_REMAP_IF_NEEDED(csa, reg) \
|
|
|
|
} \
|
|
|
|
}
|
|
|
|
|
|
|
|
void wcs_mm_recover(gd_region *reg);
|
|
|
|
|
|
|
|
#endif
|