|
static void | fetchTypeAndSourceURI (OperationContext *opCtx, const std::string &tableUri, std::string *type, std::string *source) |
| Fetch the type and source fields out of the colgroup metadata. More...
|
|
static Status | exportTableToBSON (WT_SESSION *s, const std::string &uri, const std::string &config, BSONObjBuilder *bob) |
| Reads contents of table using URI and exports all keys to BSON as string elements. More...
|
|
static void | appendSnapshotWindowSettings (WiredTigerKVEngine *engine, WiredTigerSession *session, BSONObjBuilder *bob) |
| Appends information about the storage engine's currently available snapshots and the settings that affect that window of maintained history. More...
|
|
static StatusWith< std::string > | getMetadata (OperationContext *opCtx, StringData uri) |
| Gets entire metadata string for collection/index at URI. More...
|
|
static Status | getApplicationMetadata (OperationContext *opCtx, StringData uri, BSONObjBuilder *bob) |
| Reads app_metadata for collection/index at URI as a BSON document. More...
|
|
static StatusWith< BSONObj > | getApplicationMetadata (OperationContext *opCtx, StringData uri) |
|
static StatusWith< int64_t > | checkApplicationMetadataFormatVersion (OperationContext *opCtx, StringData uri, int64_t minimumVersion, int64_t maximumVersion) |
| Validates formatVersion in application metadata for 'uri'. More...
|
|
static Status | checkTableCreationOptions (const BSONElement &configElem) |
| Validates the 'configString' specified as a collection or index creation option. More...
|
|
static StatusWith< uint64_t > | getStatisticsValue (WT_SESSION *session, const std::string &uri, const std::string &config, int statisticsKey) |
| Reads individual statistics using URI. More...
|
|
template<typename ResultType > |
static StatusWith< ResultType > | getStatisticsValueAs (WT_SESSION *session, const std::string &uri, const std::string &config, int statisticsKey) |
| Reads individual statistics using URI and casts to type ResultType. More...
|
|
template<typename ResultType > |
static StatusWith< ResultType > | getStatisticsValueAs (WT_SESSION *session, const std::string &uri, const std::string &config, int statisticsKey, ResultType maximumResultType) |
| Reads individual statistics using URI and casts to type ResultType. More...
|
|
static int64_t | getIdentSize (WT_SESSION *s, const std::string &uri) |
|
static size_t | getCacheSizeMB (double requestedCacheSizeGB) |
| Return amount of memory to use for the WiredTiger cache based on either the startup option chosen or the amount of available memory on the host. More...
|
|
static WT_EVENT_HANDLER | defaultEventHandlers () |
| Returns a WT_EVENT_HANDER with MongoDB's default handlers. More...
|
|
static int | verifyTable (OperationContext *opCtx, const std::string &uri, std::vector< std::string > *errors=NULL) |
| Calls WT_SESSION::validate() on a side-session to ensure that your current transaction isn't left in an invalid state. More...
|
|
static bool | useTableLogging (NamespaceString ns, bool replEnabled) |
|
static Status | setTableLogging (OperationContext *opCtx, const std::string &uri, bool on) |
|
static Status | setTableLogging (WT_SESSION *session, const std::string &uri, bool on) |
|
Appends information about the storage engine's currently available snapshots and the settings that affect that window of maintained history.
"snapshot-window-settings" : { "cache pressure percentage threshold" : <num>, "current cache pressure percentage" : <num>, "max target available snapshots window size in seconds" : <num>, "target available snapshots window size in seconds" : <num>, "current available snapshots window size in seconds" : <num>, "latest majority snapshot timestamp available" : <num>, "oldest majority snapshot timestamp available" : <num> }