diff options
author | Michael Cahill <michael.cahill@mongodb.com> | 2015-09-25 16:53:44 +1000 |
---|---|---|
committer | Michael Cahill <michael.cahill@mongodb.com> | 2015-09-25 16:53:44 +1000 |
commit | 4898cb582633fd686c3057824ce0d1713284d15d (patch) | |
tree | 1d4400fcabbd4a46e105f7aa67dd84829eea38ba /src/third_party/wiredtiger/src/include/block.h | |
parent | e5bd1ecd48d78900bafd64022200f94eb7be24c7 (diff) | |
download | mongo-4898cb582633fd686c3057824ce0d1713284d15d.tar.gz |
Import wiredtiger-wiredtiger-2.6.1-1231-g10208e8.tar.gz from wiredtiger branch mongodb-3.2
Diffstat (limited to 'src/third_party/wiredtiger/src/include/block.h')
-rw-r--r-- | src/third_party/wiredtiger/src/include/block.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/third_party/wiredtiger/src/include/block.h b/src/third_party/wiredtiger/src/include/block.h index a7cdaba8b9f..41f2423206b 100644 --- a/src/third_party/wiredtiger/src/include/block.h +++ b/src/third_party/wiredtiger/src/include/block.h @@ -54,7 +54,7 @@ struct __wt_extlist { wt_off_t offset; /* Written extent offset */ uint32_t cksum, size; /* Written extent cksum, size */ - int track_size; /* Maintain per-size skiplist */ + bool track_size; /* Maintain per-size skiplist */ WT_EXT *last; /* Cached last element */ @@ -161,16 +161,16 @@ struct __wt_bm { (WT_BM *, WT_SESSION_IMPL *, WT_ITEM *, const uint8_t *, size_t); u_int (*block_header)(WT_BM *); int (*checkpoint) - (WT_BM *, WT_SESSION_IMPL *, WT_ITEM *, WT_CKPT *, int); + (WT_BM *, WT_SESSION_IMPL *, WT_ITEM *, WT_CKPT *, bool); int (*checkpoint_load)(WT_BM *, WT_SESSION_IMPL *, - const uint8_t *, size_t, uint8_t *, size_t *, int); + const uint8_t *, size_t, uint8_t *, size_t *, bool); int (*checkpoint_resolve)(WT_BM *, WT_SESSION_IMPL *); int (*checkpoint_unload)(WT_BM *, WT_SESSION_IMPL *); int (*close)(WT_BM *, WT_SESSION_IMPL *); int (*compact_end)(WT_BM *, WT_SESSION_IMPL *); int (*compact_page_skip) - (WT_BM *, WT_SESSION_IMPL *, const uint8_t *, size_t, int *); - int (*compact_skip)(WT_BM *, WT_SESSION_IMPL *, int *); + (WT_BM *, WT_SESSION_IMPL *, const uint8_t *, size_t, bool *); + int (*compact_skip)(WT_BM *, WT_SESSION_IMPL *, bool *); int (*compact_start)(WT_BM *, WT_SESSION_IMPL *); int (*free)(WT_BM *, WT_SESSION_IMPL *, const uint8_t *, size_t); int (*preload)(WT_BM *, WT_SESSION_IMPL *, const uint8_t *, size_t); @@ -178,18 +178,18 @@ struct __wt_bm { (WT_BM *, WT_SESSION_IMPL *, WT_ITEM *, const uint8_t *, size_t); int (*salvage_end)(WT_BM *, WT_SESSION_IMPL *); int (*salvage_next) - (WT_BM *, WT_SESSION_IMPL *, uint8_t *, size_t *, int *); + (WT_BM *, WT_SESSION_IMPL *, uint8_t *, size_t *, bool *); int (*salvage_start)(WT_BM *, WT_SESSION_IMPL *); int (*salvage_valid) - (WT_BM *, WT_SESSION_IMPL *, uint8_t *, size_t, int); + (WT_BM *, WT_SESSION_IMPL *, uint8_t *, size_t, bool); int (*stat)(WT_BM *, WT_SESSION_IMPL *, WT_DSRC_STATS *stats); - int (*sync)(WT_BM *, WT_SESSION_IMPL *, int); + int (*sync)(WT_BM *, WT_SESSION_IMPL *, bool); int (*verify_addr)(WT_BM *, WT_SESSION_IMPL *, const uint8_t *, size_t); int (*verify_end)(WT_BM *, WT_SESSION_IMPL *); int (*verify_start) (WT_BM *, WT_SESSION_IMPL *, WT_CKPT *, const char *[]); int (*write) (WT_BM *, - WT_SESSION_IMPL *, WT_ITEM *, uint8_t *, size_t *, int); + WT_SESSION_IMPL *, WT_ITEM *, uint8_t *, size_t *, bool); int (*write_size)(WT_BM *, WT_SESSION_IMPL *, size_t *); WT_BLOCK *block; /* Underlying file */ @@ -202,7 +202,7 @@ struct __wt_bm { * There's only a single block manager handle that can be written, all * others are checkpoints. */ - int is_live; /* The live system */ + bool is_live; /* The live system */ }; /* @@ -247,8 +247,8 @@ struct __wt_block { wt_off_t slvg_off; /* Salvage file offset */ /* Verification support */ - int verify; /* If performing verification */ - int verify_strict; /* Fail hard on any error */ + bool verify; /* If performing verification */ + bool verify_strict; /* Fail hard on any error */ wt_off_t verify_size; /* Checkpoint's file size */ WT_EXTLIST verify_alloc; /* Verification allocation list */ uint64_t frags; /* Maximum frags in the file */ |