56 long long dataSizeIncrement,
57 long long numRecordsIncrement);
134 int64_t* totalFreeSizeBytes)
const;
virtual int maxSize() const
Definition: record_store_v1_test_help.cpp:290
virtual long long fileSize() const
Definition: record_store_v1_test_help.cpp:217
virtual DiskLoc allocateExtent(OperationContext *opCtx, bool capped, int size, bool enforceQuota)
Definition: record_store_v1_test_help.cpp:221
virtual std::unique_ptr< RecordFetcher > recordNeedsFetch(const DiskLoc &loc) const final
The extent manager tracks accesses to DiskLocs.
Definition: record_store_v1_test_help.cpp:259
Definition: record_store_v1_test_help.h:112
virtual CacheHint * cacheHint(const DiskLoc &extentLoc, const HintType &hint)
Tell the system that for this extent, it will have this kind of disk access.
Definition: record_store_v1_test_help.cpp:294
virtual MmapV1RecordHeader * recordForV1(const DiskLoc &loc) const
Definition: record_store_v1_test_help.cpp:263
virtual int numFiles() const
Definition: record_store_v1_test_help.cpp:213
char * data
Definition: record_store_v1_test_help.h:159
Copyright (C) 2014 MongoDB Inc.
Definition: bson_collection_catalog_entry.cpp:38
int size
Definition: record_store_v1_test_help.h:168
Definition: record_store_v1_test_help.h:158
Definition: record_store_v1_test_help.h:166
Definition: extent_manager.h:181
Definition: data_file.h:43
HintType
Definition: extent_manager.h:180
const DataFile * getOpenFile(int n) const final
Definition: record_store_v1_test_help.cpp:305
virtual void setFileFormat(OperationContext *opCtx, DataFileVersion newVersion) final
Definition: record_store_v1_test_help.cpp:303
represents a disk location/offset on disk in a database.
Definition: diskloc.h:53
virtual Extent * extentForV1(const DiskLoc &loc) const
Definition: record_store_v1_test_help.cpp:272
std::vector< ExtentInfo > _extents
Definition: record_store_v1_test_help.h:163
virtual DiskLoc extentLocForV1(const DiskLoc &loc) const
Definition: record_store_v1_test_help.cpp:276
virtual Extent * getExtent(const DiskLoc &loc, bool doSanityCheck=true) const
Definition: record_store_v1_test_help.cpp:280
OperationContext Database StringData CollectionOptions bool const BSONObj &idIndex Status
Definition: database_impl.cpp:955
virtual void freeExtents(OperationContext *opCtx, DiskLoc firstExt, DiskLoc lastExt)
firstExt has to be == lastExt or a chain
Definition: record_store_v1_test_help.cpp:246
void initializeV1RS(OperationContext *opCtx, const LocAndSize *records, const LocAndSize *drecs, const LocAndSize *legacyGrabBag, DummyExtentManager *em, DummyRecordStoreV1MetaData *md)
Creates a V1 storage/mmap_v1 with the passed in records and DeletedRecords (drecs).
Definition: record_store_v1_test_help.cpp:384
virtual ~DummyExtentManager()
Definition: record_store_v1_test_help.cpp:200
virtual void close(OperationContext *opCtx)
Definition: record_store_v1_test_help.cpp:207
size_t length
Definition: record_store_v1_test_help.h:160
DiskLoc bucket
Definition: btree_interface.cpp:336
DiskLoc loc
Definition: record_store_v1_test_help.h:167
void assertStateV1RS(OperationContext *opCtx, const LocAndSize *records, const LocAndSize *drecs, const LocAndSize *legacyGrabBag, const ExtentManager *em, const DummyRecordStoreV1MetaData *md)
Asserts that the V1RecordStore defined by md has the passed in records and drecs in the correct order...
Definition: record_store_v1_test_help.cpp:542
virtual void freeExtent(OperationContext *opCtx, DiskLoc extent)
frees a single extent ignores all fields in the Extent except: magic, myLoc, length
Definition: record_store_v1_test_help.cpp:250
DataFileVersion getFileFormat(OperationContext *opCtx) const final
Definition: record_store_v1_test_help.cpp:299
virtual Status init(OperationContext *opCtx)
opens all current files
Definition: record_store_v1_test_help.cpp:209
ExtentManager basics.
Definition: extent_manager.h:64
virtual void freeListStats(OperationContext *opCtx, int *numExtents, int64_t *totalFreeSizeBytes) const
Retrieve statistics on the the free list managed by this ExtentManger.
Definition: record_store_v1_test_help.cpp:253
Collection *const OperationContext *const opCtx
Definition: collection_impl.cpp:80
Definition: data_file.h:196