#include <namespace_details.h>
|
| | NamespaceDetails (const DiskLoc &loc, bool _capped) |
| |
| Extra * | extra () const |
| |
| Extra * | allocExtra (OperationContext *opCtx, StringData ns, NamespaceIndex &ni, int nindexessofar) |
| |
| void | copyingFrom (OperationContext *opCtx, StringData thisns, NamespaceIndex &ni, NamespaceDetails *src) |
| |
| void | setMaxCappedDocs (OperationContext *opCtx, long long max) |
| |
| IndexDetails & | idx (int idxNo, bool missingExpected=false) |
| |
| const IndexDetails & | idx (int idxNo, bool missingExpected=false) const |
| |
| IndexIterator | ii (bool includeBackgroundInProgress=false) const |
| |
| IndexDetails & | getNextIndexDetails (OperationContext *opCtx, Collection *collection) |
| | This fetches the IndexDetails for the next empty index slot. More...
|
| |
| NamespaceDetails * | writingWithoutExtra (OperationContext *opCtx) |
| |
| NamespaceDetails * | writingWithExtra (OperationContext *opCtx) |
| | Make all linked Extra objects writeable as well. More...
|
| |
| int | _catalogFindIndexByName (OperationContext *opCtx, const Collection *coll, StringData name, bool includeBackgroundInProgress) const |
| | Returns the offset of the specified index name within the array of indexes. More...
|
| |
◆ anonymous enum
| Enumerator |
|---|
| NIndexesMax | |
| NIndexesExtra | |
| NIndexesBase | |
◆ UserFlags
| Enumerator |
|---|
| Flag_UsePowerOf2Sizes | |
| Flag_NoPadding | |
◆ NamespaceDetails()
| mongo::NamespaceDetails::NamespaceDetails |
( |
const DiskLoc & |
loc, |
|
|
bool |
_capped |
|
) |
| |
|
explicit |
◆ _catalogFindIndexByName()
| int mongo::NamespaceDetails::_catalogFindIndexByName |
( |
OperationContext * |
opCtx, |
|
|
const Collection * |
coll, |
|
|
StringData |
name, |
|
|
bool |
includeBackgroundInProgress |
|
) |
| const |
Returns the offset of the specified index name within the array of indexes.
Must be passed-in the owning collection to resolve the index record entries to objects.
- Returns
- > 0 if index name was found, -1 otherwise.
◆ allocExtra()
◆ cappedTruncateLastDelUpdate()
| void mongo::NamespaceDetails::cappedTruncateLastDelUpdate |
( |
| ) |
|
|
private |
Update cappedLastDelRecLastExtent() after capExtent changed in cappedTruncateAfter()
◆ copyingFrom()
◆ extra()
| Extra* mongo::NamespaceDetails::extra |
( |
| ) |
const |
|
inline |
◆ getNextIndexDetails()
| IndexDetails& mongo::NamespaceDetails::getNextIndexDetails |
( |
OperationContext * |
opCtx, |
|
|
Collection * |
collection |
|
) |
| |
This fetches the IndexDetails for the next empty index slot.
The caller must populate returned object. This handles allocating extra index space, if necessary.
◆ idx() [1/2]
| IndexDetails & mongo::NamespaceDetails::idx |
( |
int |
idxNo, |
|
|
bool |
missingExpected = false |
|
) |
| |
◆ idx() [2/2]
| const IndexDetails & mongo::NamespaceDetails::idx |
( |
int |
idxNo, |
|
|
bool |
missingExpected = false |
|
) |
| const |
◆ ii()
| IndexIterator mongo::NamespaceDetails::ii |
( |
bool |
includeBackgroundInProgress = false | ) |
const |
|
inline |
◆ MONGO_STATIC_ASSERT() [1/3]
◆ MONGO_STATIC_ASSERT() [2/3]
| mongo::NamespaceDetails::MONGO_STATIC_ASSERT |
( |
NIndexesMax<= |
64 | ) |
|
|
private |
◆ MONGO_STATIC_ASSERT() [3/3]
◆ setMaxCappedDocs()
| void mongo::NamespaceDetails::setMaxCappedDocs |
( |
OperationContext * |
opCtx, |
|
|
long long |
max |
|
) |
| |
◆ swapIndex()
| void mongo::NamespaceDetails::swapIndex |
( |
OperationContext * |
opCtx, |
|
|
int |
a, |
|
|
int |
b |
|
) |
| |
|
private |
swaps all meta data for 2 indexes a and b are 2 index ids, whose contents will be swapped must have a lock on the entire collection to do this
◆ writingWithExtra()
| NamespaceDetails * mongo::NamespaceDetails::writingWithExtra |
( |
OperationContext * |
opCtx | ) |
|
Make all linked Extra objects writeable as well.
◆ writingWithoutExtra()
| NamespaceDetails * mongo::NamespaceDetails::writingWithoutExtra |
( |
OperationContext * |
opCtx | ) |
|
◆ IndexCatalog
◆ IndexCatalogEntry
◆ _dataFileVersion
| unsigned short mongo::NamespaceDetails::_dataFileVersion |
◆ _extraOffset
| long long mongo::NamespaceDetails::_extraOffset |
◆ _indexes
◆ _indexFileVersion
| unsigned short mongo::NamespaceDetails::_indexFileVersion |
◆ _reserved
| char mongo::NamespaceDetails::_reserved[8] |
◆ _reservedA
| unsigned long long mongo::NamespaceDetails::_reservedA |
◆ capExtent
| DiskLoc mongo::NamespaceDetails::capExtent |
◆ capFirstNewRecord
| DiskLoc mongo::NamespaceDetails::capFirstNewRecord |
◆ deletedListLarge
◆ deletedListLegacyGrabBag
| DiskLoc mongo::NamespaceDetails::deletedListLegacyGrabBag |
◆ deletedListSmall
◆ firstExtent
| DiskLoc mongo::NamespaceDetails::firstExtent |
◆ indexBuildsInProgress
| int mongo::NamespaceDetails::indexBuildsInProgress |
◆ isCapped
| int mongo::NamespaceDetails::isCapped |
◆ LargeBuckets
| const int mongo::NamespaceDetails::LargeBuckets = 8 |
|
static |
◆ lastExtent
| DiskLoc mongo::NamespaceDetails::lastExtent |
◆ lastExtentSize
| int mongo::NamespaceDetails::lastExtentSize |
◆ maxDocsInCapped
| int mongo::NamespaceDetails::maxDocsInCapped |
◆ multiKeyIndexBits
| unsigned long long mongo::NamespaceDetails::multiKeyIndexBits |
◆ nIndexes
| int mongo::NamespaceDetails::nIndexes |
◆ paddingFactorOldDoNotUse
| double mongo::NamespaceDetails::paddingFactorOldDoNotUse |
◆ SmallBuckets
| const int mongo::NamespaceDetails::SmallBuckets = 18 |
|
static |
◆ stats
◆ systemFlagsOldDoNotUse
| int mongo::NamespaceDetails::systemFlagsOldDoNotUse |
◆ userFlags
| int mongo::NamespaceDetails::userFlags |
The documentation for this class was generated from the following files:
- /home/louis/git/mongodbsource.github.io/src/src/mongo/db/storage/mmap_v1/catalog/namespace_details.h
- /home/louis/git/mongodbsource.github.io/src/src/mongo/db/storage/mmap_v1/catalog/namespace_details.cpp