Public Member Functions | |
const char * | getDatabaseNameCString () |
MSTable * | getTable (CSString *tab_name, bool create) |
MSTable * | getTable (const char *tab_name, bool create) |
MSTable * | getTable (uint32_t tab_id, bool missing_ok) |
MSTable * | getNextTable (uint32_t *pos) |
void | addTable (uint32_t tab_id, const char *tab_name, off64_t file_size, bool to_delete) |
void | addTableFromFile (CSDirectory *dir, const char *file_name, bool to_delete) |
void | removeTable (MSTable *tab) |
void | dropTable (MSTable *tab) |
void | renameTable (MSTable *tab, const char *to_name) |
CSString * | getATableName () |
uint32_t | getTableCount () |
void | openWriteRepo (MSOpenTable *otab) |
MSRepository * | getRepoFullOfTrash (time_t *wait_time) |
MSRepository * | lockRepo (off64_t size) |
void | removeRepo (uint32_t repo_id, bool *mustQuit) |
MSRepoFile * | getRepoFileFromPool (uint32_t repo_id, bool missing_ok) |
void | returnRepoFileToPool (MSRepoFile *file) |
uint64_t | newBlobRefId () |
void | queueForDeletion (MSOpenTable *otab, int type, uint32_t tab_id, uint64_t blob_id, uint32_t auth_code, uint32_t *log_id, uint32_t *log_offset, uint32_t *q_time) |
MSTempLogFile * | openTempLogFile (uint32_t log_id, size_t *log_rec_size, size_t *log_head_size) |
uint32_t | getTempLogCount () |
void | removeTempLog (uint32_t log_id) |
virtual CSObject * | getKey () |
virtual int | compareKey (CSObject *) |
MSCompactorThread * | getCompactorThread () |
CSSyncVector * | getRepositoryList () |
bool | isValidHeaderField (const char *name) |
bool | isRecovering () |
void | setRecovering (bool recovering) |
void | setBackupDatabase () |
void | releaseBackupDatabase () |
void | startBackup (MSBackupInfo *backup_info) |
void | terminateBackup () |
bool | backupStatus (uint64_t *total, uint64_t *completed, bool *completed_ok) |
uint32_t | backupID () |
virtual void | retain () |
virtual void | release () |
uint32_t | getRefCount () |
virtual void | finalize () |
virtual uint32_t | hashKey () |
virtual CSObject * | getHashLink () |
virtual void | setHashLink (CSObject *) |
virtual CSObject * | getNextLink () |
virtual CSObject * | getPrevLink () |
virtual void | setNextLink (CSObject *) |
virtual void | setPrevLink (CSObject *) |
virtual void | wait () |
void | wait (time_t mill_sec) |
virtual void | wakeup () |
virtual void | lock () |
virtual void | unlock () |
virtual bool | haveLock () |
Static Public Member Functions | |
static void | startUp (const char *default_http_headers) |
static void | stopThreads () |
static void | shutDown () |
static MSDatabase * | getBackupDatabase (CSString *db_location, CSString *db_name, uint32_t db_id, bool create) |
static MSDatabase * | getDatabase (CSString *db_name, bool create) |
static MSDatabase * | getDatabase (const char *db_name, bool create) |
static MSDatabase * | getDatabase (uint32_t db_id, bool missing_ok=false) |
static uint32_t | getDatabaseID (CSString *db_name, bool create) |
static uint32_t | getDatabaseID (const char *db_name, bool create) |
static void | wakeTempLogThreads () |
static void | dropDatabase (MSDatabase *doomedDatabase, const char *db_name=NULL) |
static void | dropDatabase (const char *db_name) |
static bool | convertTablePathToIDs (const char *path, uint32_t *db_id, uint32_t *tab_id, bool create) |
static bool | convertTableAndDatabaseToIDs (const char *db_name, const char *tab_name, uint32_t *db_id, uint32_t *tab_id, bool create) |
Public Attributes | |
bool | myIsPBMS |
uint32_t | myDatabaseID |
CSString * | myDatabaseName |
CSString * | myDatabasePath |
CSSyncSparseArray * | myTempLogArray |
MSCompactorThread * | myCompactorThread |
MSTempLogThread * | myTempLogThread |
CSSyncVector * | myRepostoryList |
CloudDB * | myBlobCloud |
uint8_t | myBlobType |
bool | isBackup |
CSSyncSortedList | iHTTPMetaDataHeaders |
Private Member Functions | |
void | queueTempLogEvent (MSOpenTable *otab, int type, uint32_t tab_id, uint64_t blob_id, uint32_t auth_code, uint32_t *log_id, uint32_t *log_offset, uint32_t *q_time) |
void | dropDatabase () |
void | startThreads () |
const char * | fileToTableName (size_t size, char *tab_name, const char *file_name) |
Static Private Member Functions | |
static void | removeDatabasePath (CSString *doomedDatabasePath) |
static uint32_t | getDBID (CSPath *path, CSString *db_name) |
static CSPath * | createDatabasePath (const char *location, CSString *db_name, uint32_t *db_id_ptr, bool *create, bool is_pbms=false) |
static MSDatabase * | newDatabase (const char *db_location, CSString *db_name, uint32_t db_id, bool create) |
static MSDatabase * | loadDatabase (CSString *db_name, bool create) |
static uint32_t | fileToTableId (const char *file_name, const char *name_part=NULL) |
Private Attributes | |
MSBackup * | iBackupThread |
uint32_t | iBackupTime |
bool | iRecovering |
bool | iClosing |
CSSyncSortedList * | iTableList |
CSSparseArray * | iTableArray |
uint32_t | iMaxTableID |
MSTempLog * | iWriteTempLog |
bool | iDropping |
CSLock | iBlobRefIdLock |
uint64_t | iNextBlobRefId |
Static Private Attributes | |
static CSSyncSortedList * | gDatabaseList |
static CSSparseArray * | gDatabaseArray |
Friends | |
class | CSSync |
class | CSLock |
Definition at line 50 of file database_ms.h.