tldm-universe/Ardent/UV/gcidir/include/DBTEST.h

135 lines
3.2 KiB
C
Raw Permalink Normal View History

2024-09-09 21:51:08 +00:00
/******************************************************************************
*
* DBTEST.h - DBtest declaration and value defines
*
* Module %M% Version %I% Date %H%
*
* (c) Copyright 1998 Ardent Software Inc. - All Rights Reserved
* This is unpublished proprietary source code of Ardent Software Inc.
* The copyright notice above does not evidence any actual or intented
* publication of such source code.
*
*******************************************************************************
*
* Maintenence log - insert most recent change descriptions at top
*
* Date.... GTAR# WHO Description.........................................
* 10/14/98 23801 SAP Change copyrights.
* 07/06/94 14173 EAP New include file for DBtest
*
*****************************************************************************/
EXTERN int DBtest; /* Extern used to simulate IO errors for testing */
/* induced errors for free of leaf node with a left sibling */
#define FREET25_1 1
#define FREET25_2 2
#define FREET25_3 3
#define FREET25_4 4
/* induced errors for free of leaf node with a right sibling */
#define FREET25_5 5
#define FREET25_6 6
#define FREET25_7 7
#define FREET25_8 8
/* induced errors returning freed leaf node to freechain */
#define FREET25_9 9
#define FREET25_10 10
#define FREET25_11 11
#define FREET25_12 12
/* induced errors allocating overflow blocks from the freechain */
#define GETOVER_1 21
#define GETOVER_2 22
#define GETOVER_3 23
#define GETOVER_4 24
/* induced errors allocating overflow blocks by extending the file */
#define GETOVER_5 25
#define GETOVER_6 26
#define GETOVER_7 27
#define GETOVER_8 28
/* induced errors overwriting internal node with single leaf node */
#define PACK25_1 41
#define PACK25_2 42
/* induced errors updating left sibling */
#define PACK25_3 43
#define PACK25_4 44
#define PACK25_5 45
#define PACK25_6 46
/* induced errors updating right sibling */
#define PACK25_7 47
#define PACK25_8 48
#define PACK25_9 49
#define PACK25_10 50
/* induced errors returning leaf node to freechain */
#define PACK25_11 51
#define PACK25_12 52
#define PACK25_13 53
/* induced errors returning overflow blocks to the freechain */
#define RELOVER_1 61
#define RELOVER_2 62
/* induced errors merging adjacent leaf nodes */
#define MERGE25_1 71
#define MERGE25_2 72
#define MERGE25_3 73
#define MERGE25_4 74
/* induced errors splitting type 30 group */
#define SPLIT30_1 81
#define SPLIT30_2 82
#define SPLIT30_3 83
/* induced errors merging type 30 group */
#define MERGE30_1 91
#define MERGE30_2 92
#define MERGE30_3 93
#define MERGE30_4 94
/* induced errors splitting type 25 leaf or internal node */
#define SPLIT25_1 101
#define SPLIT25_2 102
#define SPLIT25_3 103
#define SPLIT25_4 104
#define SPLIT25_5 105
#define SPLIT25_6 106
#define SPLIT25_7 107
#define SPLIT25_8 108
/* induced errors splitting a root leaf or internal node */
#define SPLITROOT25_1 121
#define SPLITROOT25_2 122
#define SPLITROOT25_3 123
#define SPLITROOT25_4 124
#define SPLITROOT25_5 125
#define SPLITROOT25_6 126
#define SPLITROOT25_7 127
#define SPLITROOT25_8 128
#define SPLITROOT25_9 129
#define SPLITROOT25_10 130
/* end of LOG.h */