~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/innobase/include/db0err.h

  • Committer: mordred
  • Date: 2008-11-01 00:46:20 UTC
  • mto: (572.1.1 devel) (575.1.1 devel)
  • mto: This revision was merged to the branch mainline in revision 573.
  • Revision ID: mordred@opensolaris-20081101004620-vd0kzsl9k40hvf4p
Some updates to dtrace support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/******************************************************
 
2
Global error codes for the database
 
3
 
 
4
(c) 1996 Innobase Oy
 
5
 
 
6
Created 5/24/1996 Heikki Tuuri
 
7
*******************************************************/
 
8
 
 
9
#ifndef db0err_h
 
10
#define db0err_h
 
11
 
 
12
 
 
13
enum db_err {
 
14
        DB_SUCCESS = 10,
 
15
 
 
16
        /* The following are error codes */
 
17
        DB_ERROR,
 
18
        DB_OUT_OF_MEMORY,
 
19
        DB_OUT_OF_FILE_SPACE,
 
20
        DB_LOCK_WAIT,
 
21
        DB_DEADLOCK,
 
22
        DB_ROLLBACK,
 
23
        DB_DUPLICATE_KEY,
 
24
        DB_QUE_THR_SUSPENDED,
 
25
        DB_MISSING_HISTORY,             /* required history data has been
 
26
                                        deleted due to lack of space in
 
27
                                        rollback segment */
 
28
        DB_CLUSTER_NOT_FOUND = 30,
 
29
        DB_TABLE_NOT_FOUND,
 
30
        DB_MUST_GET_MORE_FILE_SPACE,    /* the database has to be stopped
 
31
                                        and restarted with more file space */
 
32
        DB_TABLE_IS_BEING_USED,
 
33
        DB_TOO_BIG_RECORD,              /* a record in an index would not fit
 
34
                                        on a compressed page, or it would
 
35
                                        become bigger than 1/2 free space in
 
36
                                        an uncompressed page frame */
 
37
        DB_LOCK_WAIT_TIMEOUT,           /* lock wait lasted too long */
 
38
        DB_NO_REFERENCED_ROW,           /* referenced key value not found
 
39
                                        for a foreign key in an insert or
 
40
                                        update of a row */
 
41
        DB_ROW_IS_REFERENCED,           /* cannot delete or update a row
 
42
                                        because it contains a key value
 
43
                                        which is referenced */
 
44
        DB_CANNOT_ADD_CONSTRAINT,       /* adding a foreign key constraint
 
45
                                        to a table failed */
 
46
        DB_CORRUPTION,                  /* data structure corruption noticed */
 
47
        DB_COL_APPEARS_TWICE_IN_INDEX,  /* InnoDB cannot handle an index
 
48
                                        where same column appears twice */
 
49
        DB_CANNOT_DROP_CONSTRAINT,      /* dropping a foreign key constraint
 
50
                                        from a table failed */
 
51
        DB_NO_SAVEPOINT,                /* no savepoint exists with the given
 
52
                                        name */
 
53
        DB_TABLESPACE_ALREADY_EXISTS,   /* we cannot create a new single-table
 
54
                                        tablespace because a file of the same
 
55
                                        name already exists */
 
56
        DB_TABLESPACE_DELETED,          /* tablespace does not exist or is
 
57
                                        being dropped right now */
 
58
        DB_LOCK_TABLE_FULL,             /* lock structs have exhausted the
 
59
                                        buffer pool (for big transactions,
 
60
                                        InnoDB stores the lock structs in the
 
61
                                        buffer pool) */
 
62
        DB_FOREIGN_DUPLICATE_KEY,       /* foreign key constraints
 
63
                                        activated by the operation would
 
64
                                        lead to a duplicate key in some
 
65
                                        table */
 
66
        DB_TOO_MANY_CONCURRENT_TRXS,    /* when InnoDB runs out of the
 
67
                                        preconfigured undo slots, this can
 
68
                                        only happen when there are too many
 
69
                                        concurrent transactions */
 
70
        DB_UNSUPPORTED,                 /* when InnoDB sees any artefact or
 
71
                                        a feature that it can't recoginize or
 
72
                                        work with e.g., FT indexes created by
 
73
                                        a later version of the engine. */
 
74
 
 
75
        DB_PRIMARY_KEY_IS_NULL,         /* a column in the PRIMARY KEY
 
76
                                        was found to be NULL */
 
77
 
 
78
        /* The following are partial failure codes */
 
79
        DB_FAIL = 1000,
 
80
        DB_OVERFLOW,
 
81
        DB_UNDERFLOW,
 
82
        DB_STRONG_FAIL,
 
83
        DB_ZIP_OVERFLOW,
 
84
        DB_RECORD_NOT_FOUND = 1500,
 
85
        DB_END_OF_INDEX
 
86
};
 
87
 
 
88
#endif