diff options
author | sueloverso <sue@mongodb.com> | 2016-05-17 17:08:51 -0400 |
---|---|---|
committer | Alex Gorrod <alexander.gorrod@mongodb.com> | 2016-05-17 17:08:51 -0400 |
commit | 850bfde29375f3efb205defd8d08fef85b60e57b (patch) | |
tree | 1afc3393f3c4e010850163fdda0a8a205898e286 /src/include/session.h | |
parent | 0893547e78009260c22506689ef71f689aeef446 (diff) | |
download | mongo-850bfde29375f3efb205defd8d08fef85b60e57b.tar.gz |
WT-2610 Reduce hazard pointer array size. (#2731)
* WT-2610 Reduce hazard pointer array size.
* Add session_count_idle and workload to wtperf.
* Allocate session array outside the loop.
* KNF
* Remove diagnostic call to check hazard pointers.
* Add a few hazard related statistics.
* Revert change. Reinstate diagnostic hazard page check.
Diffstat (limited to 'src/include/session.h')
-rw-r--r-- | src/include/session.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/session.h b/src/include/session.h index 7fdb7fc2548..aa51dae58c4 100644 --- a/src/include/session.h +++ b/src/include/session.h @@ -198,7 +198,7 @@ struct WT_COMPILER_TYPE_ALIGN(WT_CACHE_LINE_ALIGNMENT) __wt_session_impl { ((s)->hazard == NULL) /* The number of hazard pointers grows dynamically. */ -#define WT_HAZARD_INCR 10 +#define WT_HAZARD_INCR 1 uint32_t hazard_size; /* Allocated slots in hazard array. */ uint32_t nhazard; /* Count of active hazard pointers */ WT_HAZARD *hazard; /* Hazard pointer array */ |