~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/pbms/src/repository_ms.h

  • Committer: Monty Taylor
  • Date: 2011-03-11 18:48:55 UTC
  • mfrom: (2228.1.8 build)
  • Revision ID: mordred@inaugust.com-20110311184855-1essd3a6xfr7lx6r
Merged Andrew: drizzledump and docs bug fixes
Merged Barry: pbms bugfixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
190
190
#define MS_CAN_ADD_MDATA(bh, l)         (MS_VAR_SPACE(bh) >= (int32_t)l)
191
191
 
192
192
 
193
 
#define MS_BLOB_STAT_OFFS                       offsetof(MSBlobHeadRec, rb_storage_type_1)
 
193
#define MS_BLOB_STAT_OFFS                       offsetof(MSBlobHeadRec, rb_status_1)
194
194
#define MS_BLOB_META_OFFS                       offsetof(MSBlobHeadRec, rb_alias_offset_2)
195
195
 
196
196
#define MS_BLOB_FREE_REF                        0x0000                                          /* A free reference */
355
355
        uint32_t                        myRepoLockState;        // Bit mask of RepoLockStates                                           
356
356
        bool                    isRemovingFP;                                                           /* Set to true if the file pool is being removed. */
357
357
        CSMutex                 myRepoLock[CS_REPO_REC_LOCK_COUNT];
 
358
        CSMutex                 myRepoWriteLock;                // Writing requires it's own lock. 
358
359
        MSDatabase              *myRepoDatabase;
359
360
        off64_t                 myGarbageCount;
360
361
        size_t                  myRepoHeadSize;
411
412
private:
412
413
        bool                    myRepoXLock;
413
414
        /* The read file pool: */
414
 
        MSRepoFile              *iFilePool;                                                                     /* A list of files currently not in use. */
 
415
        MSRepoFile              *iFilePool;                                                                     /* A list of files currently not in use. THIS LIST DOESN'T COUNT AS A REFERENCE! YUK!!*/
415
416
        CSLinkedList    iPoolFiles;                                                                     /* A list of all files in this pool */
416
417
 
417
418
        CSPath *getRepoFilePath();