diff options
author | Luke Chen <luke.chen@mongodb.com> | 2019-09-05 15:55:04 +1000 |
---|---|---|
committer | Luke Chen <luke.chen@mongodb.com> | 2019-09-05 15:55:04 +1000 |
commit | d2c2e6c73c424d5a28d5bd2a9031e4796a5e4371 (patch) | |
tree | 457f5fe506097b766e5e1695ba9d7d2662910416 /src/third_party/wiredtiger/src/include/meta.h | |
parent | 41a74df493503fec4ce054cc380a0d7eb01d374c (diff) | |
download | mongo-d2c2e6c73c424d5a28d5bd2a9031e4796a5e4371.tar.gz |
Import wiredtiger: 543111d3d8737ada1b741b3a25a201feb2ed13a3 from branch mongodb-4.0
ref: 48bf8dae7c..543111d3d8
for: 4.0.13
WT-4502 Assertion checking hazard pointers on page discard is too strong
WT-4658 Apply Clang Format
WT-4792 Add stat to track pages queued for eviction after LRU sorting
WT-4840 WT_CURSOR.modify must require explicit, snapshot-isolation transaction
WT-4869 Stop adding cache pressure when eviction is falling behind
WT-4881 Soften the restrictions on re-entering reconciliation
WT-4882 Improve checkpoint performance when there are large metadata pages
WT-4892 Improve statistics about forced eviction
WT-4893 Fix a race between internal page child-page eviction checks and cursors in the tree
WT-4895 Fix debug eviction mode so it chooses skew more randomly
WT-4898 Don't allow the eviction server to reconcile if it's busy
WT-4920 Add statistics tracking when eviction server is waiting for page transitions
WT-4957 Revert part of a change about when pages are queued for urgent eviction
WT-5050 Assertion failure during urgent eviction of metadata page
Diffstat (limited to 'src/third_party/wiredtiger/src/include/meta.h')
-rw-r--r-- | src/third_party/wiredtiger/src/include/meta.h | 94 |
1 files changed, 46 insertions, 48 deletions
diff --git a/src/third_party/wiredtiger/src/include/meta.h b/src/third_party/wiredtiger/src/include/meta.h index e4b369f736d..b2530f18d30 100644 --- a/src/third_party/wiredtiger/src/include/meta.h +++ b/src/third_party/wiredtiger/src/include/meta.h @@ -6,84 +6,82 @@ * See the file LICENSE for redistribution information. */ -#define WT_WIREDTIGER "WiredTiger" /* Version file */ -#define WT_SINGLETHREAD "WiredTiger.lock" /* Locking file */ +#define WT_WIREDTIGER "WiredTiger" /* Version file */ +#define WT_SINGLETHREAD "WiredTiger.lock" /* Locking file */ -#define WT_BASECONFIG "WiredTiger.basecfg" /* Base configuration */ -#define WT_BASECONFIG_SET "WiredTiger.basecfg.set"/* Base config temp */ +#define WT_BASECONFIG "WiredTiger.basecfg" /* Base configuration */ +#define WT_BASECONFIG_SET "WiredTiger.basecfg.set" /* Base config temp */ -#define WT_USERCONFIG "WiredTiger.config" /* User configuration */ +#define WT_USERCONFIG "WiredTiger.config" /* User configuration */ -#define WT_BACKUP_TMP "WiredTiger.backup.tmp" /* Backup tmp file */ -#define WT_METADATA_BACKUP "WiredTiger.backup" /* Hot backup file */ -#define WT_INCREMENTAL_BACKUP "WiredTiger.ibackup" /* Incremental backup */ -#define WT_INCREMENTAL_SRC "WiredTiger.isrc" /* Incremental source */ +#define WT_BACKUP_TMP "WiredTiger.backup.tmp" /* Backup tmp file */ +#define WT_METADATA_BACKUP "WiredTiger.backup" /* Hot backup file */ +#define WT_INCREMENTAL_BACKUP "WiredTiger.ibackup" /* Incremental backup */ +#define WT_INCREMENTAL_SRC "WiredTiger.isrc" /* Incremental source */ -#define WT_METADATA_TURTLE "WiredTiger.turtle" /* Metadata metadata */ -#define WT_METADATA_TURTLE_SET "WiredTiger.turtle.set" /* Turtle temp file */ +#define WT_METADATA_TURTLE "WiredTiger.turtle" /* Metadata metadata */ +#define WT_METADATA_TURTLE_SET "WiredTiger.turtle.set" /* Turtle temp file */ -#define WT_METADATA_URI "metadata:" /* Metadata alias */ -#define WT_METAFILE "WiredTiger.wt" /* Metadata table */ -#define WT_METAFILE_SLVG "WiredTiger.wt.orig" /* Metadata copy */ -#define WT_METAFILE_URI "file:WiredTiger.wt" /* Metadata table URI */ +#define WT_METADATA_URI "metadata:" /* Metadata alias */ +#define WT_METAFILE "WiredTiger.wt" /* Metadata table */ +#define WT_METAFILE_SLVG "WiredTiger.wt.orig" /* Metadata copy */ +#define WT_METAFILE_URI "file:WiredTiger.wt" /* Metadata table URI */ -#define WT_LAS_FILE "WiredTigerLAS.wt" /* Lookaside table */ -#define WT_LAS_URI "file:WiredTigerLAS.wt" /* Lookaside table URI*/ +#define WT_LAS_FILE "WiredTigerLAS.wt" /* Lookaside table */ +#define WT_LAS_URI "file:WiredTigerLAS.wt" /* Lookaside table URI*/ -#define WT_SYSTEM_PREFIX "system:" /* System URI prefix */ -#define WT_SYSTEM_CKPT_URI "system:checkpoint" /* Checkpoint URI */ +#define WT_SYSTEM_PREFIX "system:" /* System URI prefix */ +#define WT_SYSTEM_CKPT_URI "system:checkpoint" /* Checkpoint URI */ /* - * Optimize comparisons against the metafile URI, flag handles that reference - * the metadata file. + * Optimize comparisons against the metafile URI, flag handles that reference the metadata file. */ -#define WT_IS_METADATA(dh) F_ISSET((dh), WT_DHANDLE_IS_METADATA) -#define WT_METAFILE_ID 0 /* Metadata file ID */ +#define WT_IS_METADATA(dh) F_ISSET((dh), WT_DHANDLE_IS_METADATA) +#define WT_METAFILE_ID 0 /* Metadata file ID */ -#define WT_METADATA_COMPAT "Compatibility version" -#define WT_METADATA_VERSION "WiredTiger version" /* Version keys */ -#define WT_METADATA_VERSION_STR "WiredTiger version string" +#define WT_METADATA_COMPAT "Compatibility version" +#define WT_METADATA_VERSION "WiredTiger version" /* Version keys */ +#define WT_METADATA_VERSION_STR "WiredTiger version string" /* * WT_WITH_TURTLE_LOCK -- * Acquire the turtle file lock, perform an operation, drop the lock. */ -#define WT_WITH_TURTLE_LOCK(session, op) do { \ - WT_ASSERT(session, !F_ISSET(session, WT_SESSION_LOCKED_TURTLE));\ - WT_WITH_LOCK_WAIT(session, \ - &S2C(session)->turtle_lock, WT_SESSION_LOCKED_TURTLE, op); \ -} while (0) +#define WT_WITH_TURTLE_LOCK(session, op) \ + do { \ + WT_ASSERT(session, !F_ISSET(session, WT_SESSION_LOCKED_TURTLE)); \ + WT_WITH_LOCK_WAIT(session, &S2C(session)->turtle_lock, WT_SESSION_LOCKED_TURTLE, op); \ + } while (0) /* * WT_CKPT -- * Encapsulation of checkpoint information, shared by the metadata, the * btree engine, and the block manager. */ -#define WT_CHECKPOINT "WiredTigerCheckpoint" -#define WT_CKPT_FOREACH(ckptbase, ckpt) \ - for ((ckpt) = (ckptbase); (ckpt)->name != NULL; ++(ckpt)) +#define WT_CHECKPOINT "WiredTigerCheckpoint" +#define WT_CKPT_FOREACH(ckptbase, ckpt) for ((ckpt) = (ckptbase); (ckpt)->name != NULL; ++(ckpt)) struct __wt_ckpt { - char *name; /* Name or NULL */ + char *name; /* Name or NULL */ - WT_ITEM addr; /* Checkpoint cookie string */ - WT_ITEM raw; /* Checkpoint cookie raw */ + WT_ITEM addr; /* Checkpoint cookie string */ + WT_ITEM raw; /* Checkpoint cookie raw */ - int64_t order; /* Checkpoint order */ + int64_t order; /* Checkpoint order */ - uintmax_t sec; /* Timestamp */ + uintmax_t sec; /* Timestamp */ - uint64_t ckpt_size; /* Checkpoint size */ + uint64_t ckpt_size; /* Checkpoint size */ - uint64_t write_gen; /* Write generation */ + uint64_t write_gen; /* Write generation */ - void *bpriv; /* Block manager private */ + void *bpriv; /* Block manager private */ /* AUTOMATIC FLAG VALUE GENERATION START */ -#define WT_CKPT_ADD 0x1u /* Checkpoint to be added */ -#define WT_CKPT_DELETE 0x2u /* Checkpoint to be deleted */ -#define WT_CKPT_FAKE 0x4u /* Checkpoint is a fake */ -#define WT_CKPT_UPDATE 0x8u /* Checkpoint requires update */ -/* AUTOMATIC FLAG VALUE GENERATION STOP */ - uint32_t flags; +#define WT_CKPT_ADD 0x1u /* Checkpoint to be added */ +#define WT_CKPT_DELETE 0x2u /* Checkpoint to be deleted */ +#define WT_CKPT_FAKE 0x4u /* Checkpoint is a fake */ +#define WT_CKPT_UPDATE 0x8u /* Checkpoint requires update */ + /* AUTOMATIC FLAG VALUE GENERATION STOP */ + uint32_t flags; }; |