00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #pragma once
00026 #ifndef __SYSTAB_DUMP_H__
00027 #define __SYSTAB_DUMP_H__
00028
00029 #include "cslib/CSMutex.h"
00030
00031 #include "defs_ms.h"
00032 #include "system_table_ms.h"
00033
00034 class MSDumpTable : public MSRepositoryTable {
00035 public:
00036 MSDumpTable(MSSystemTableShare *share, TABLE *table);
00037 ~MSDumpTable();
00038
00039 void seqScanInit();
00040 bool seqScanNext(char *buf);
00041 void insertRow(char *buf);
00042 void use();
00043 void unuse();
00044
00045 private:
00046 uint32_t dt_cloudbackupDBID;
00047 bool dt_hasCompleted;
00048 bool dt_hasInfo;
00049 bool dt_haveCloudInfo;
00050 uint16_t dt_headerSize;
00051
00052 virtual bool returnRow(MSBlobHeadPtr blob, char *buf);
00053 bool returnDumpRow(char *record, uint64_t record_size, char *buf);
00054 bool returnInfoRow(char *buf);
00055
00056 void setUpRepository(const char *repoInfo, uint32_t length);
00057 void insertRepoRow(MSBlobHeadPtr blob, uint32_t length);
00058 };
00059
00060 extern DT_FIELD_INFO pbms_dump_info[];
00061 extern DT_KEY_INFO pbms_dump_keys[];
00062
00063 #endif // __SYSTAB_DUMP_H__