~jlukas79/+junk/mysql-server

« back to all changes in this revision

Viewing changes to storage/falcon/StorageTableShare.h

manual merge 6.0-main --> 6.0-bka-review

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
class SyncObject;
36
36
class Sequence;
37
37
class SyncObject;
 
38
class Format;
38
39
 
39
40
struct StorageSegment {
40
41
        short                   type;
80
81
        StorageErrorTableSpaceExist             = -107,
81
82
        StorageErrorTableNotEmpty               = -108,
82
83
        StorageErrorTableSpaceNotExist  = -109,
83
 
        StorageErrorDeviceFull                  = -110
 
84
        StorageErrorDeviceFull                  = -110,
 
85
        StorageErrorTableSpaceDataFileExist     = -111
84
86
        };
85
87
        
86
88
static const int StoreErrorIndexShift   = 10;
96
98
        virtual void            lock(bool exclusiveLock);
97
99
        virtual void            unlock(void);
98
100
        virtual int                     createIndex(StorageConnection *storageConnection, const char* name, const char* sql);
 
101
        virtual int                     dropIndex(StorageConnection *storageConnection, const char* name, const char* sql);
99
102
        virtual int                     renameTable(StorageConnection *storageConnection, const char* newName);
100
103
        virtual INT64           getSequenceValue(int delta);
101
104
        virtual int                     setSequenceValue(INT64 value);
102
 
        virtual int                     haveIndexes(void);
 
105
        virtual int                     haveIndexes(int indexCount);
103
106
        virtual void            cleanupFieldName(const char* name, char* buffer, int bufferLength);
104
107
        virtual void            setTablePath(const char* path, bool tempTable);
105
108
        virtual void            registerCollation(const char* collationName, void* arg);
110
113
 
111
114
        int                                     getIndexId(const char* schemaName, const char* indexName);
112
115
        int                                     create(StorageConnection *storageConnection, const char* sql, int64 autoIncrementValue);
 
116
        int                                     upgrade(StorageConnection *storageConnection, const char* sql, int64 autoIncrementValue);
113
117
        int                                     deleteTable(StorageConnection *storageConnection);
114
118
        int                                     truncateTable(StorageConnection *storageConnection);
115
119
        void                            load(void);
144
148
        Table                           *table;
145
149
        StorageIndexDesc        **indexes;
146
150
        Sequence                        *sequence;
 
151
        Format                          *format;                                                // format for insertion
147
152
        int                                     numberIndexes;
148
153
        volatile INTERLOCK_TYPE truncateLockCount;
149
154
        bool                            tempTable;
 
155
        int getFieldId(const char* fieldName);
150
156
};
151
157
 
152
158
#endif