summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/cursor/cur_std.c
Commit message (Collapse)AuthorAgeFilesLines
* Import wiredtiger: e217c5727a0922118d3d294729864605c2e8bacc from branch ↵Etienne Petrel2022-09-011-0/+6
| | | | | | | | | mongodb-master ref: 0ac82ac3fb..e217c5727a for: 6.2.0-rc0 WT-9758 Only reset cursor bounds when calling cursor reset externally (#8208)
* Import wiredtiger: 783aa1f7df44e1d8e5ff4a2b15475bf57946b3ec from branch ↵Etienne Petrel2022-07-261-2/+2
| | | | | | | | | mongodb-master ref: 3ae4a6657c..783aa1f7df for: 6.1.0-rc0 WT-9474 Implement cursor bound checking for cursor next / prev for column store. (#8080)
* Import wiredtiger: 51a4cdf436fc011726bda16d462cfec33c15832c from branch ↵Chenhao Qu2022-06-291-0/+11
| | | | | | | | | mongodb-master ref: 250a4b0dcc..51a4cdf436 for: 6.1.0-rc0 WT-9320 Check against cursor bounds in cursor next / prev for row-store (#8028)
* Import wiredtiger: 62e6483f2ea902710408ffb75efd91ae6085ff9e from branch ↵Etienne Petrel2022-06-071-8/+9
| | | | | | | | | mongodb-master ref: 25d147c06f..62e6483f2e for: 6.1.0-rc0 WT-9343 Creating a new API end macro to increment a statistic on error
* Import wiredtiger: 25d147c06f12f3c44866740b3211b19a15a9b091 from branch ↵Luke Chen2022-06-061-9/+8
| | | | | | | | | | mongodb-master ref: 94b59d2e87..25d147c06f for: 6.1.0-rc0 Reverted ticket(s): WT-9343 Creating a new API end macro to increment a statistic on error
* Import wiredtiger: b017f238da1ffd71a0623f6bc2e9eb2425887d44 from branch ↵Luke Chen2022-06-061-15/+102
| | | | | | | | | mongodb-master ref: dd171a05d5..b017f238da for: 6.1.0-rc0 WT-9400 Read at or before the stable timestamp in the CppSuite.
* Revert "Import wiredtiger: 81fe6d40931947a1961cc3b9c96a1f31f343dbc9 from ↵Jim OLeary2022-06-021-9/+8
| | | | | | branch mongodb-master" This reverts commit 1a6296734505e5bd08081a3b174b10de88d0b30c.
* Revert "Import wiredtiger: dd171a05d5e80652f756e7e48a4b138a21b704fe from ↵Jim OLeary2022-06-021-93/+7
| | | | | | branch mongodb-master" This reverts commit 25d06b08c40fc2e3480c9f02ed47c5260b71ca8d.
* Import wiredtiger: dd171a05d5e80652f756e7e48a4b138a21b704fe from branch ↵Etienne Petrel2022-06-011-7/+93
| | | | | | | | | mongodb-master ref: 2772ccb8f2..dd171a05d5 for: 6.1.0-rc0 WT-9319 Save the user provided cursor bounds to the cursor
* Import wiredtiger: 81fe6d40931947a1961cc3b9c96a1f31f343dbc9 from branch ↵Etienne Petrel2022-06-011-8/+9
| | | | | | | | | mongodb-master ref: aabaa42300..81fe6d4093 for: 6.1.0-rc0 WT-9343 Creating a new API end macro to increment a statistic on error
* Import wiredtiger: 9f4c18f7d9edcc5bf4c2a17ec3caca24076b47a2 from branch ↵Luke Chen2022-05-111-3/+32
| | | | | | | | | mongodb-master ref: 8da47eb850..9f4c18f7d9 for: 6.1.0-rc0 WT-9135 Add a skeleton API that implements the range bounded cursor method
* Import wiredtiger: 9aefe6512018c229358e916f6e5f52f2784ba17f from branch ↵Luke Chen2022-03-021-1/+3
| | | | | | | | | mongodb-master ref: 8008c405d6..9aefe65120 for: 6.0.0 WT-8647 Fix __curhs_set_key ignores the return from __wt_buf_set
* Import wiredtiger: 7ae2a8010828136e05b26861512ea73b6eb5e235 from branch ↵Etienne Petrel2022-02-011-2/+1
| | | | | | | | | mongodb-master ref: fbbdde7db4..7ae2a80108 for: 5.3.0 WT-8248 Check for valid configuration key when using the WT_CURSOR.reconfigure API
* Import wiredtiger: 7bb6ce3337bc8a2173ae6c6813e201481c5adebe from branch ↵Luke Chen2022-01-241-6/+5
| | | | | | | | | mongodb-master ref: a90db9c642..7bb6ce3337 for: 5.3.0 WT-8333 Implement version cursor
* Import wiredtiger: 0c0cca8587e0db76ccc33919a7866d3dce1ddc13 from branch ↵Alison Felizzi2021-10-281-16/+11
| | | | | | | | | mongodb-master ref: e3e77069b2..0c0cca8587 for: 5.2.0 WT-8241 Skip value return for largest key
* Import wiredtiger: 51a5c5ff5b0ceea341f70a386fff5a9f68d2edac from branch ↵Luke Chen2021-10-151-6/+9
| | | | | | | | | mongodb-master ref: e930e8d0cd..51a5c5ff5b for: 5.2.0 WT-8226 fix largest_key failed to consider prepared update
* Import wiredtiger: 0349a673d5f61d16cf81eb697b7774457596cda7 from branch ↵Chenhao Qu2021-10-061-2/+2
| | | | | | | | | mongodb-master ref: cbaffc1dda..0349a673d5 for: 5.2.0 WT-8070 Remove discrepancy between prefix_key and prefix_search
* Import wiredtiger: 2b1f3d0eec137ceaab33071c1109507c5ebd0b0e from branch ↵Luke Chen2021-10-051-0/+46
| | | | | | | | | mongodb-master ref: 2e1c641875..2b1f3d0eec for: 5.1.0 WT-7992 Provide API to return the last key in a table regardless of visibility
* Import wiredtiger: 7f53fd66879c2f622b6eb6e01e63a78473d2004f from branch ↵Etienne Petrel2021-09-141-1/+1
| | | | | | | | | mongodb-master ref: 5d8cd35a6a..7f53fd6687 for: 5.1.0 WT-7745 Add macro to identify uris for btree objects
* Import wiredtiger: 82de98748157acabd197e74c9a8ce203a07e9f74 from branch ↵Luke Chen2021-09-101-0/+31
| | | | | | | | | mongodb-master ref: 4f223980f4..82de987481 for: 5.1.0 WT-8035 Handle prefix enabled lexicographical comparisons for string key formats
* Import wiredtiger: f26fdd297d4a8dcfb6503941976f46c388bbaa47 from branch ↵Luke Chen2021-08-161-0/+2
| | | | | | | | | mongodb-master ref: 4eee5867cb..f26fdd297d for: 5.1.0 WT-7363 Add support for dumping history store output in hex format
* Import wiredtiger: 28841ae4b05d7140d62e92505f9547c7128b93e8 from branch ↵Chenhao Qu2021-05-191-0/+4
| | | | | | | | | mongodb-5.0 ref: 107ab83ea7..28841ae4b0 for: 5.1.0 WT-7440 Integrate file cursor with tiered storage
* Import wiredtiger: 652def8ae433a2001145d34baec9ef9f5610a97e from branch ↵Luke Chen2021-05-041-1/+18
| | | | | | | | | mongodb-5.0 ref: 859f83a6cc..652def8ae4 for: 5.0.0 WT-7264 Creating a new configuration for search near that allows it to exit quickly when searching for prefixes
* Import wiredtiger: 41859ea925fb10cc40d482f4a3315145750ea933 from branch ↵Luke Chen2021-04-291-14/+21
| | | | | | | | | | | | | | | | | | | | mongodb-5.0 ref: c8af64068c..41859ea925 for: 5.0.0 WT-7092 Reduce calls to hash URI when opening/closing cached cursors by one WT-7400 Set WT_HS_READ_ALL flag for the search before fixing the out of order timestamps WT-7413 Add an option to wtperf to run a backup operation WT-7420 Tiered local storage changed to flush files to bucket directory WT-7429 Set readonly metadata when switching tiered objects WT-7453 Coverity analysis defect 119968: Continue has no effect WT-7454 Coverity analysis defect 119967: Continue has no effect WT-7455 Coverity analysis defect 119966: Redundant test WT-7456 Coverity analysis defect 119965: Uninitialized pointer read WT-7457 Coverity: fix error in local store rename WT-7459 Coverity analysis defect 119947: Redundant test WT-7463 Use wt_off_t to avoid incompatible pointer types
* Import wiredtiger: f3e0656e45a843ace7fabef2c4cc85540ae6c672 from branch ↵Chenhao Qu2021-04-071-1/+4
| | | | | | | | | mongodb-5.0 ref: 98c008d62c..f3e0656e45 for: 5.0.0 WT-7376 Initialize tiered cursor name
* Import wiredtiger: b1d217df468b2cd4be9eee6945d2119951bdc5cf from branch ↵Luke Chen2021-03-021-1/+1
| | | | | | | | | mongodb-5.0 ref: b7739a6515..b1d217df46 for: 4.9.0 WT-6926 Update WiredTiger source code to include 2021 copyright notices
* Import wiredtiger: bd160209c77917053661441c525c89562b49a82e from branch ↵Luke Chen2021-01-151-1/+6
| | | | | | | | | | | | | mongodb-5.0 ref: 27f58fce14..bd160209c7 for: 4.9.0 WT-6605 Enhance rollback-to-stable verbose messaging WT-6717 Restrict usage of LSM to only operate in conjunction with compatible functionality WT-6743 Save and restore session's data handle during cursor reopen call WT-6862 Remove duplicate in statistics descriptions WT-7065 Add check for WT_DHANDLE_DEAD to assertion
* Import wiredtiger: 247de8d7ab4fc8dfd24167a35e94d8afcf16190b from branch ↵Luke Chen2021-01-111-6/+3
| | | | | | | | | | | | mongodb-5.0 ref: 60a57bb9a8..247de8d7ab for: 4.9.0 WT-5111 Fix wt2909_checkpoint_integrity and wt3120_filesys so it is natural to run standalone WT-6863 Reduce code duplication by improving statistics macros WT-6991 Make WT_IS_HS and WT_IS_METADATA consistent - both operating on dhandle WT-7066 Point README doc link to develop/index.html
* Import wiredtiger: d099f81fc8944a4bee1a7f64128648753e9ca941 from branch ↵Chenhao Qu2021-01-041-0/+4
| | | | | | | | | | | | | | | mongodb-5.0 ref: acc7563bc8..d099f81fc8 for: 4.9.0 WT-5101 Make Clang Format recognise remaining loop macros WT-6313 Added verify_metadata configuration to the exclusion list when writing to basecfg WT-6710 Change the default transaction isolation to snapshot WT-6802 Don't set operation timer for internal and reentry api calls WT-6888 WTPERF reports incorrect upper bound item count during populate WT-6990 New cursor debug configuration isn't considered in __wt_cursor_cache_get WT-6996 Fix suite_random.rand32() in python test suite
* Import wiredtiger: b22e16b7643e0e07c784962899b3a45728536947 from branch ↵Luke Chen2020-11-201-0/+31
| | | | | | | | | | | mongodb-5.0 ref: d05021d0ee..b22e16b764 for: 4.9.0 WT-6563 Create a reproducer for invalid modification application WT-6672 Don't increase the writegen number until RTS cleans up the checkpoint WT-6859 Implement search_near method for the history store cursor
* Import wiredtiger: 7a08dc67df07f3895410c4b6cf7a2c70aec3ce24 from branch ↵Luke Chen2020-08-241-3/+3
| | | | | | | | | | mongodb-4.6 ref: 850b579d4b..7a08dc67df for: 4.5.1 WT-6598 Add new API allowing changing dhandle hash bucket size WT-6611 Revert enhancement allowing rename and incremental backup
* Import wiredtiger: 1a3371324597a8f124c126c2df11303ded4d8dd9 from branch ↵Luke Chen2020-08-171-10/+9
| | | | | | | | | | | | | | mongodb-4.6 ref: 1124e23db6..1a33713245 for: 4.5.1 WT-5940 Migrate to Clang Format 10 WT-6000 Enhance incremental backup testing in format to support restart WT-6471 Avoid the error message for non-existent clang-format binary WT-6560 Fix usage of global salvage in WT utility WT-6577 History store dump outputs confusing time window WT-6586 Tombstone inserted to history store should also be flagged as WT_UPDATE_HS
* Import wiredtiger: 1124e23db614bd8d786ea7e4f5f521e21e43c8c8 from branch ↵Luke Chen2020-08-141-1/+8
| | | | | | | | | | | | | | mongodb-4.6 ref: c801f052df..1124e23db6 for: 4.5.1 WT-6027 Fix docs spelling errors and warnings WT-6478 Cursor cache statistics not getting incremented WT-6507 Exit cache eviction worker after our operation has timed out WT-6544 Onpage value not appended to the tombstone restored from the data or history store WT-6585 Panic if updates that are older than the updates in history store are inserted to history store WT-6591 Stop checkpoint thread before closing connection in Python tests
* Import wiredtiger: 3b4a927265fc81dc4ab8895c5451a7ec9582c1d3 from branch ↵Luke Chen2020-06-191-4/+4
| | | | | | | | | | | | | | | | mongodb-4.4 ref: 3998a1f701..3b4a927265 for: 4.5.1 WT-6349 Don't clean the globally visible on-disk tombstones as part of checkpoint WT-6351 Fix race between threads to update condition variable's previous wait value WT-6388 Fix-up out-of-order updates in the history store WT-6397 Reduce visibility restrictions for reading tombstone information from history store's update list WT-6428 Fixes for checkpoint retention WT-6429 Fix memory leak in rollback to stable WT-6438 Fix rollback error due to cache pressure WT-6441 Add stats to indicate how many times the history store is search happened during a normal search call
* Import wiredtiger: d198ee319dcb857f27358f9a75c11aab4725bedb from branch ↵Luke Chen2020-06-041-4/+10
| | | | | | | | | | | | | | mongodb-4.4 ref: 3901b43d1e..d198ee319d for: 4.5.1 WT-6015 (4.4-only) Backup test appears to be missing oplog entries WT-6330 Perform rollback to stable on the history store as a final step WT-6358 Make wt dump print history store in human readable format WT-6359 Coverity analysis defect 114181: Explicit null dereferenced WT-6369 Make page dumps on format failure optional and off by default WT-6371 Add timing stress that delays checkpoint of history store by 10 seconds
* Import wiredtiger: 4cf221a61f19db1ed706f923d18d3d0b507101c9 from branch ↵Luke Chen2020-05-141-0/+3
| | | | | | | | | | | | | | | | | | | | | | mongodb-4.4 ref: 63b37d1861..4cf221a61f for: 4.5.1 WT-5725 Remove the WT_CURSOR_BTREE.btree field WT-6082 Skip writing txn-id to data store when not needed WT-6088 Re-enable format-test WT-6151 Perform an empty check on time window before performing visibility check WT-6164 Reduce the number of page flags according to the flag variable size WT-6169 Use helper functions to check time window's visibility WT-6172 Fix silent failures of Evergreen test/format tasks WT-6186 Only delete timestamped history store entries when seeing a non-timestamped tombstone WT-6201 Release WT_CURSOR_BTREE buffers when caching a WT_CURSOR WT-6205 Coverity analysis defect 114159: Redundant test WT-6206 Coverity analysis defect 114158: Uninitialized pointer read WT-6207 Coverity analysis defect 114156: PW.SET_BUT_NOT_USED WT-6209 Coverity analysis defect 114135: Unintentional integer overflow WT-6210 Coverity analysis defect 114134: Explicit null dereferenced
* Import wiredtiger: 18dfb9e58e39927696affcd8e362364e23e1aa59 from branch ↵Luke Chen2020-05-061-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mongodb-4.4 ref: a707df12a2..18dfb9e58e for: 4.5.1 WT-5242 Minimize checkpoints pinned during backup WT-5470 Reduce copies and allocations in read path WT-5673 Prepare support with durable history: modify verify and salvage as needed WT-5677 Prepare support with durable history: add test/format stress tests WT-5710 Review WT_PANIC usage WT-5716 Create the history store file at the same time as creating the metadata file in wiredtiger open WT-5839 Ignore non-globally visible tombstones for both data store and hs store in hs verification WT-5841 Return WT_TRY_SALVAGE when the history file is removed or truncated WT-5928 Cleanup stale FIXMEs from durable history WT-5977 WT_SESSION_NO_RECONCILE flag set by history cursor prevents eviction WT-5984 Allow prepared updates to be evicted in durable history WT-6009 Prepare support with durable history: add statistic for prepared updates evicted WT-6032 Turn on mongodb-4.4 branch upgrade/downgrade testing WT-6051 Fix reconstructing full value from modifies for string format WT-6068 Re-enable tests temporarily disabled during durable history development WT-6069 Remove WT_UPDATE_RESTORED_FROM_DISK flag WT-6070 Coverity : Copy paste error WT-6071 Coverity : Change format specifier WT-6086 Move time windows and aggregated time windows into structures WT-6087 Add a C2S(cursor) macro to simplify translation from a cursor to a session. WT-6095 Verify on-disk page only for row store as part of rollback to stable WT-6109 Cleanup usage of cursor->session WT-6110 Cleanup cast from cbt to cursor WT-6120 Remove use-after-free in __verify_history_store_id WT-6130 Disable test_random_abort
* Import wiredtiger: 7b994a862e899a12eb7c3ac814c9fada7d8d1ab9 from branch ↵Luke Chen2020-04-221-2/+2
| | | | | | | | | | | | | | | | | | | | mongodb-4.4 ref: 9bd1ece797..7b994a862e for: 4.5.1 WT-4701 Switch test/format to use WiredTiger locking primitives WT-5766 Separate out internal and shared transaction data WT-5791 Prepare checkpoint can finish in 0msec and reset prepare min stat WT-5794 Remove skew_newest option from reconciliation WT-5833 Fix caching issue for overflow key/value items WT-5919 Disallow logging archival testing with log-based incremental backup WT-5946 Eviction server handles can deadlock when opening HS cursors WT-5968 Make the WT_SESSION_IMPL.txn field an allocated structure WT-5986 Create script for emulating multiversion tests WT-6016 Fill source code comments where lines start with parentheticals WT-6020 __rec_append_orig_value() cleanup WT-6026 Fix s_all breakage on format.h
* Import wiredtiger: 9bd1ece7971714f947b47e589b0af5d7ee97a29d from branch ↵Luke Chen2020-04-161-2/+2
| | | | | | | | | | | | | | | | | | | mongodb-4.4 ref: da6c25fee0..9bd1ece797 for: 4.5.1 WT-5671 Prepare support with durable history: implement changes to prepare and commit/abort WT-5675 Prepare support with durable history: workgen changes WT-5765 Add an error return macro that skips codes but doesn't clear them WT-5825 Reduce the number of runs for checkpoint-stress-test WT-5982 Remove redundant fields used earlier for HS inserts WT-5989 Support arguments in workgen WT-5997 Disable mongodb-4.4 branch for release compatibility testing WT-5999 Update format so it's possible for it to restart on an existing database WT-6003 Remove duplicate open_cursor call WT-6007 Fix an assert for fixed length column store WT-6008 Turn off format stress testing for column-store
* Import wiredtiger: 5b5d7988560a20dbe827a1fa16c0481e6c0e2821 from branch ↵Luke Chen2020-04-021-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mongodb-4.4 ref: 660f3363bd..5b5d798856 for: 4.5.1 WT-3821 Python test case fails due to pinned timestamp warning WT-4230 Remove named snapshot support WT-4458 Only sweep btree handles that have been evicted from cache WT-4523 Fix type incompatibilities during alloc and free of memory for async ops WT-4671 Remove Limbo pages WT-4674 Instantiate birthmark records using in-memory metadata WT-4676 Search LAS for the history and compare to in-memory update WT-4677 Re-initialize prepared updates WT-4678 Write the test workload for relevant history in cache WT-4681 Check if expired content is being swept from lookaside WT-4683 Reverse the modifies when writing to LAS WT-4685 Add new statistics for relevant history in cache WT-4868 Aggregate btree write gen from leaf pages in salvage WT-4954 Document duplicate backup cursors WT-5001 Migrate Jenkins “wiredtiger-test-format-stress-sanitizer-ppc” job to Evergreen WT-5045 Add more statistics tracking where checkpoint spends time WT-5052 Enhance lookaside search functionality to handle WT_MODIFY records WT-5058 Stop initializing a page with updates from lookaside WT-5066 Extend test_las06 to support column store. WT-5072 Modify __wt_rec_upd_select() to pull an update from lookaside WT-5073 Review update chain traversals WT-5089 test_las02.py fails: Unable to locate the correct record WT-5092 Modify lookaside schema to add timestamp and transaction id to the key WT-5098 Modify __wt_update_alloc() to accept NULL WT_ITEM values WT-5141 Handle multiple modifies for the same key on lookaside eviction WT-5146 Returning wrong record value for variable length columnar table WT-5158 Remove assertion in __wt_find_lookaside_upd for cursor comparison WT-5167 Fixing the missing pieces of page instantiation from las WT-5170 Convert the os_posix layer to use mmap for I/O instead of system calls WT-5186 Handle reading of LAS modifies on top of a birthmark record WT-5191 Avoid LAS sweep server remove records that don't have disk image with proper version WT-5203 lookaside history should no longer be preferentially evicted WT-5212 Backup data validation tests WT-5214 Verify potential incremental failures WT-5215 Stress testing of incremental backup WT-5222 Make checkpoint always choose skew newest WT-5225 Create persistent file for History store WT-5227 Enable python test cursor04 on relevant history feature branch WT-5228 Several tests fail with incorrect or missing record after reconciliation changes WT-5233 Prepared update not visible in las06 WT-5236 Enhance workgen to support draft lookaside stress workload WT-5240 Update test/format to perform incremental backups WT-5246 Update WiredTiger backup documentation WT-5253 Add History store file to checkpoint target list. WT-5254 Add aggregate timestamp info to the WT_REF. WT-5256 Fix relevant history build after develop merged brought LIMBO reference WT-5259 Write wiki documentation on how to generate and use XRay traces WT-5264 Add a delete record for every insert record into the WT history store to represent stop time pair WT-5267 Enable storing start/stop time pair for each record in the history store WT-5271 Remove WT_PAGE_LOOKASIDE structure. WT-5279 Disable failing tests in the preferred way WT-5280 Write all other versions to history store during checkpoint. WT-5281 Assert that we're no longer writing tombstones to the history store WT-5283 Eviction to create disk image with newest committed version. WT-5284 Test to check eviction is writing the newest version to data store WT-5286 Enable the data format to store time pair WT-5289 Remove the code that does garbage collection from sweep server WT-5290 Add new verbose flag and verbose logs for checkpoint garbage collection WT-5291 Additional statistics for checkpoint garbage collection WT-5292 Test the garbage collection by checkpoint WT-5295 Disable remaining failing tests in durable history branch WT-5298 Add a condition to verify the timestamp of a page during checkpoint of history store WT-5300 Traverse the history store internal page for obsolete child pages by checkpoint WT-5302 Begin writing validity window for new data format WT-5303 Update checkpoint statistics for the new history store file. WT-5308 Remove WT --enable-page-version-ts build configuration option WT-5317 Eviction writes uncommitted metadata changes to disk WT-5320 Save update restore to reuse lookaside eviction. WT-5321 Update the stats and counters that represent lookaside inserts according to durable history WT-5328 Evict obsolete history store page WT-5333 Fix search not found issue due to skipped birthmark and rework txn_read WT-5335 Read the start and stop time pairs back from cell when we reconstruct it on update chain WT-5341 Clang sanitiser was triggered by checkpoint writing to the history store change WT-5343 Show history store in the wt list WT-5345 Show aggregated timestamp information for internal pages and leaf pages WT-5347 Add ability for wt util to print historical versions of a key WT-5353 Verify data continuity between history and data store WT-5354 Verify history store key is not missing from the data store WT-5355 Add the ability to dump a given btree as of a timestamp WT-5361 Fix selecting aborted txn to write to disk WT-5369 Don't use transaction ids from a page with a previous startup generation WT-5385 Use WT_UPDATE_HISTORY_STORE to avoid repeatedly inserting updates to lookaside WT-5386 Re-enable test_inmem01 WT-5388 Fix write squash statistic caused by change in reverse delta WT-5392 Fall out of in-memory obsolete history page eviction WT-5414 Change the usage from durable timestamp to commit timestamp during eviction. WT-5416 Make sure that rollback to stable works on all objects in WT WT-5417 Skip the clean pages of each tree with aggregated stop timestamp is less than stable timestamp WT-5419 Create a TOMBSTONE update to represent the on-disk value state WT-5420 Reconcile should consider TOMBSTONE update to replace or remove the on-disk value WT-5421 Search the history store to find the value that can be replaced the on-disk value WT-5422 Remove the history updates for reconciled data pages WT-5423 Convert a history store modified value into a full update WT-5424 Add statistics for rollback to stable operations WT-5425 Add a new verbose flag to print the rollback to stable operation WT-5426 Ensure rollback to stable is executed from recovery WT-5427 Implement tests for rollback to stable WT-5431 Merge develop branch to durable history branch WT-5434 Update compatibility_test_for_mongodb_releases.sh for durable history WT-5439 Free updates inserted into history store after hs transaction commit in eviction WT-5441 Fix known visibility issues WT-5446 Fix not writing to lookaside WT-5448 Reconciliation wrongly overwrites the cell with default time pairs WT-5451 Update reverse modify logic to always insert a modify into the history store WT-5453 Fix cell packing for globally visible values. WT-5454 Rename cache_overflow configuration option. WT-5455 Fix test_hs03.py WT-5457 single block reconciliation with saved updates can leak blocks WT-5461 Search should not return onpage value if nothing is found by transaction read WT-5462 Rebalance the Evergreen Python test buckets WT-5464 Open reading history cursors on the user session WT-5467 Make history store cursor part of each session, get rid of the cursor pool WT-5469 Support mixing timestamped and non-timestamped updates WT-5476 Continue writing tombstones when the tombstone is globally visable. WT-5478 Insert records directly into history store without a txn WT-5482 Increment cache usage when appending on-disk value to update list WT-5484 Check visibility before saving updates for in memory reconciliation WT-5489 page-read can race with threads locking in-memory page structures WT-5491 Add an option to wt verify to confirm that no data exists after the stable timestamp WT-5493 Re-enabling test_bug008 WT-5495 WT-5495 For column store, check the on-page value and history store even if the key is in the insert list WT-5496 upd should be reset to NULL if all upd on the chain are not visible in txn read WT-5500 Implement new history store format WT-5501 Do not use default session to create a history store cursor when configuring WT-5502 Re-add changes reverted by merge commit WT-5503 We can only free updates inserted into history store after a full update. WT-5508 Some of the txnids not cleared after restart WT-5509 Infinite loop when reading from history store at early specific timestamp in test_util01 WT-5510 Fix test_hs01.py, test_hs06.py (test_hs_prepare_reads) WT-5513 Don't consider TOMBSTONE/Stop time pair for history store reads WT-5515 Enable test_hs06 WT-5516 Backup starts with base_write_gen 1 WT-5518 Split-parent code can race with other threads when checking the WT_REF.state WT-5519 Apply version from datastore after finding a modify when possible. WT-5522 Remove update free logic in hs_insert_updates. WT-5523 Inserting history store needs to handle modify based on a tombstone WT-5525 Free up 3B in the WT_REF structure WT-5529 Improve usage of upd in txn.i WT-5540 Call cursor disable bulk insert on first insert to history store. WT-5541 Use snapshot isolation whenever we use history store cursors in verification WT-5542 History store not using the on disk value as the base value for modify when key boundary crossed WT-5547 Disable all the skipped rollback to stable tests for column store types WT-5549 Fix the recovery rollback to stable and enable the passing tests for both row and variable columnar types WT-5551 Fix the history store insert statistics WT-5552 Checkpoint reconciliation and page splits free the WT_REF.addr field without locking WT-5555 Update base write gen to the maximum write gen we have seen in recover WT-5556 Verify of a file should verify its history store content too WT-5558 Use durable timestamp from the update instead of start WT-5563 Transactions ID are getting wiped which causes errors in WT Verify WT-5565 Update fast truncate code to consider aggregated timestamps WT-5566 Update rollback to stable tests to use new statistics WT-5567 Fix an assert in txn_read always be true WT-5569 Update WiredTiger source code to include 2020 copyright notices for durable history WT-5570 Refactor the __upd_alloc_tombstone() according to the new use in durable history WT-5574 Rolling back a prepared transaction with `cursor_copy` results in a use-after-free WT-5575 Fix the test_durable_ts01 test to expect older data after recovery WT-5576 Temporarily add lookaside score stat and cache_overflow config option WT-5579 Fix Evergreen memory sanitizer test failure WT-5581 Address sanitizer test failure running bloom filter testing WT-5582 Long unit testing sweeping cursors failing WT-5583 Applying operations in recovery encounters unexpected operation type WT-5587 Limit how many checkpoints are dropped by a subsequent checkpoint WT-5588 Only release cursor memory allocated by the API for cursor copy debug mode WT-5589 force_stop on duplicate cursor open not returning error WT-5590 Fix spellings so s_string passes WT-5593 test/format assertion failure addr->size != 0 WT-5595 test/format data mismatch errors WT-5596 Increase format stress testing scope. WT-5597 Fix the history store file access during recovery WT-5598 __verify_timestamp_to_pretty_string uses local buffer which is freed before access WT-5602 Rollback transaction core dumped with upd->start_ts >= unpack->stop_ts WT-5603 test/format assertion failure while discarding in-memory page WT-5605 Update test checkpoint to no longer use checkpoint cursors WT-5607 Successful 'verify -h' calls are returning not found WT-5610 Fix assertion for reconciling fixed length column store WT-5611 Don't write updates with different commit and durable timestamps to data store WT-5612 Remove history store values for non-timestamp tables WT-5613 Remove birthmark update type WT-5615 Coverity: Read of uninitialised value WT-5616 Coverity: Memory leak WT-5617 Coverity: Memory leak WT-5618 Skip timestamp range overlap check if start timestamp is zero WT-5620 Skip the history store TOMBSTONE only for rollback to stable operation WT-5624 Incremental unit test should use offset/length ranges WT-5625 corruption detected during validation - root page's aggregated timestamp incorrect WT-5626 Remove assert which checks for newer updates in the history store WT-5628 rollback_to_stable failed with no such file WT-5630 Adding stage to turtle init to prevent startup on a too-low version WT-5631 Recovery rollback to stable for timestamped logged tables WT-5632 Don't write stop_ts of 1 for non-timestamped delete WT-5633 Fix another assertion for reconciling fixed length column store WT-5636 prefix compression is slow in the history-store access pattern WT-5638 Ignore checking visibility of history store updates as they are implicitly committed WT-5641 Clear history store content when deleting a key due to a globally visible tombstone WT-5644 Appending onpage value to an aborted update triggers an assert WT-5647 replace the WT_REF structure's WT_REF_READING state with a flag WT-5648 Add a leaf or internal page type flag to the WT_REF structure WT-5649 Refactor WT_REF locking, review all WT_REF.addr reads for locking issues WT-5650 Fix a race condition between reading the WT_PAGE.modify field and the page being dirtied. WT-5651 Fix the RTS assert to consider error scenarios of search WT-5654 Add version information to the history store key format WT-5658 Fix heap-use-after-free in parent split code WT-5665 Data mismatch bug when running new version of test_checkpoint with timestamps WT-5666 Deleting a chunk of the namespace changes the WT_REF type WT-5667 Remove usage of checkpoint cursor in test/format WT-5668 Prepare support with durable history: implement data format changes WT-5669 Prepare support with durable history: backport data format changes to 4.2 WT-5672 Prepare support with durable history: implement rollback_to_stable WT-5674 Prepare support with durable history: add/debug functional tests WT-5678 Fix infinite looping behaviour in history store cursor positioning WT-5680 segfault when dereferencing NULL addr while reconciling WT-5682 Ensure that we can't apply modifies on top of tombstones WT-5684 overflow values must be discarded when there is no update for a key WT-5685 Evergreen does not match libraries in artifacts or spawns WT-5688 Memory leak detected during page overflow read WT-5689 reduce work required for the cursor-pinned test. WT-5690 Rollback to stable assertion failure regarding update visibility WT-5692 Revert a test change to fix a Python hang WT-5695 Fixed incremental backup example to use O_CREAT in the backup range case WT-5696 test_timestamp_abort fails with data mismatch WT-5698 Disabling bulk cursor changes broke a Jenkins compile WT-5699 Refactor incremental backup RANGE code WT-5700 Add smoke test script for incremental backup stress test WT-5701 If an out-of-order update masks an on-disk value, don't append it WT-5704 Incremental backup smoke test core dumped WT-5706 Fix csuite-incr-backup-test calculation of value sizes WT-5707 Reduce the test load for checkpoint stress test WT-5712 Ensure WT command line utility treats history store consistently WT-5713 Fix failures so test_durable_rollback_stable.py can be enabled WT-5719 Incremental backup metadata should quote the ID string WT-5721 Remove LAS file when upgrading to 4.4 WT-5722 Incremental backup should do a name check on identifiers WT-5729 Coverity analysis defect 114078: Unchecked return value from library WT-5730 Coverity analysis defect 114077: Unchecked return value WT-5733 Coverity analysis defect 114074: Logically dead code WT-5734 Coverity analysis defect 114073: PW.MIXED_ENUM_TYPE WT-5735 Coverity analysis defect 114070: Explicit null dereferenced WT-5745 Don't copy a value into tombstones WT-5747 Cope with updates out of timestamp order WT-5753 Fix divide by zero error in test/csuite/test_incr_backup WT-5754 Ensure the value is globally visible before encode it into WT_ROW WT-5756 heap-use-after-free in __wt_row_modify WT-5762 Make test_hs10 more robust WT-5767 Fix search_near invocations for history store WT-5771 make-check-msan-test failed with use-of-uninitialized-value error on RHEL 8.0 WT-5774 Move stress test tasks into a separate build variant WT-5775 Fix leak of updates from history store WT-5777 Add statistic for tracking history store deletions due to key removal WT-5780 Fix timestamp_index_build.js in noPassthrough suite. WT-5781 Fix basic.js in parallel suite WT-5785 Fix potential deadlocks in eviction and verify code paths WT-5786 Detect if a file is too small to read a descriptor block WT-5789 million-collection-test throughput degradation after loading ~30K collections WT-5792 Dump and verify can't see the history store WT-5795 Disable assertion that inserts to the history store are unique WT-5799 Dont assume we have ordered timestamps when doing rec append original value WT-5800 Temporarily disable history store verify WT-5806 Perform rollback to stable on a clean shutdown WT-5809 Invariant failure: stable timestamp does not equal appliedThrough timestamp WT-5813 Fix heap-use-after-free in __split_parent WT-5820 Change format.sh to forcibly quit if a test runs out of disk space. WT-5822 Don't evict metadata updates from a running checkpoint WT-5825 Timeout failure in checkpoint-stress-test WT-5826 Fix a leak when a page splits and some updates aren't restored WT-5827 Enable test_schema_abort WT-5828 Reconciliation discards salvaged overflow blocks with stop time pairs WT-5830 Enable two c tests in evergreen WT-5831 Fix the case of history store corruption WT-5834 Incremental backup returning too large offset WT-5843 Mark page dirty when reconciled page updates are aborted WT-5844 Adjust error codes for when we detect files that are too small to contain a descriptor block WT-5855 Clean up operation tracking documentation WT-5857 Prepend homedir for system call pathnames in format backup test WT-5858 Fix incremental backups both log/block based for first time WT-5859 Fix a seg fault in verification WT-5862 Add conditional around macro definition WT-5868 Fix test_txn19 because of changing of error message WT-5872 test/format not writing out isolation level WT-5874 Disable test_wt2323_join_visiblity WT-5879 Fix a bug reconciling metadata WT-5880 test/format backup missing expected log file WT-5885 Improve WT rollback to stable verbose output for better debugging WT-5887 Turn off verbose output when test/format output is redirected to a file WT-5890 Bump log/WT version to facilitate upgrade/downgrade floor for MongoDB WT-5891 Disable testing of checkpoint cursors in wt4333_handle_locks WT-5894 Don't persist durable timestamp if it is same as commit timestamp WT-5896 Recovery sometimes attempts rollback to stable with an absent history store file WT-5898 Fix memory leak in verifying history store WT-5899 Restore WT_PAGE_LAS_UPDATE on-disk page flag value to avoid break backward compatibility WT-5900 Display failed version numbers in error message for version mismatch failures WT-5901 Fix branch checkout issue in release compatibility tests WT-5902 Fix history store using incorrect key for lookups WT-5910 Fix start_durable_ts when handling out-of-order updates WT-5914 Only configure log-incremental backup if archiving is off in test/format WT-5921 Fix wtperf_xray to detect builds that haven't been instrumented with XRay WT-5922 Separate out XRay and xray_to_optrack build instructions WT-5923 Avoid performing history store cleanup for modified trees WT-5925 Rework format CONFIG file syntax for clarity WT-5931 Recovery rollback to stable is leading to remove a record that is not expected
* Import wiredtiger: d74cb1a91399e1197a95667502002ffed2b7b82b from branch ↵Luke Chen2020-02-121-1/+1
| | | | | | | | | | | | | | | | | | mongodb-4.4 ref: 94c6c16014..d74cb1a913 for: 4.3.4 WT-5372 Skip known errors for long-running format stress sanitizer tasks WT-5383 Update WiredTiger source code to include 2020 copyright notices WT-5398 Adding more correctness tasks into rhel80 Evergreen build variant WT-5526 Remove visibility check in __wt_value_return_upd WT-5536 Add zstd as a builtin compressor for WiredTiger Python package WT-5538 Change format to ignore Evergreen timestamps in configuration files WT-5553 Return error if primary cursor is not an incremental source WT-5554 Account for logpath when retrieving file size in incremental backup WT-5557 Fix the wrong page type returned when checking on-page cell WT-5564 Buffer not extended properly when incremental bitstring grows
* Import wiredtiger: c6962452f2c3469c039edfcafb7702450bf14c3b from branch ↵Luke Chen2020-01-151-2/+40
| | | | | | | | | | | | | | | | | | | mongodb-4.4 ref: 5bd9fdfc0b..c6962452f2 for: 4.3.3 WT-4886 Avoid depending on particular error message text for test_bug018 WT-5003 Migrate Jenkins “wiredtiger-test-race-condition-stress-sanitizer” job to Evergreen WT-5024 Migrate Jenkins “wiredtiger-compatibility” job to Evergreen WT-5081 Add support for ASan builds in the Python test suite WT-5119 Birthmark records can be read as normal updates if reads race with checkpoints WT-5165 Add cursor copy debug mode WT-5199 Adding correctness tasks into rhel80 Evergreen build variant WT-5261 coverage-report task timed out in Evergreen WT-5334 Add testing coverage for static wt build WT-5379 Missing varargs cleanup WT-5410 WiredTiger formatted timestamp string buffer size is too small
* Import wiredtiger: 61bf0547c6edfc6cd7c633c80f1c76f3e33e5aec from branch ↵Luke Chen2019-12-311-6/+6
| | | | | | | | | | | | | | | | | | | | | | | mongodb-4.4 ref: 77f9aebf23..61bf0547c6 for: 4.3.3 WT-4919 Add debug mode which allocates exact amount of memory in __wt_realloc_def WT-4921 Add debug mode option that slows checkpoint creation WT-4997 Migrate Jenkins “wiredtiger-test-format-stress” job to Evergreen WT-4998 Migrate Jenkins “wiredtiger-test-format-stress-ppc” job to Evergreen WT-5000 Migrate Jenkins “wiredtiger-test-format-stress-sanitizer” job to Evergreen WT-5004 Migrate Jenkins “wiredtiger-test-checkpoint-stress” job to Evergreen WT-5005 Migrate Jenkins “wiredtiger-test-recovery-stress” job to Evergreen WT-5090 Log a message when rolling a thread back because it holds the oldest timestamp WT-5112 Handling goto labels with multiple words in s_goto.py WT-5312 Add thread doing random cursor operations to format's cache size calculation WT-5324 WiredTiger API error handling fixes WT-5327 Backup cursor API can fail to restore WT_SESSION name information WT-5330 Read-only transactions are being rolled back in MongoDB WT-5360 Add a template for building a glossary in developer docs WT-5365 Remove format's long-running transaction support
* Import wiredtiger: af2cb8f052184a94635c3bfc358620dd36df5828 from branch ↵Luke Chen2019-10-151-9/+7
| | | | | | | | | | | | | | | | mongodb-4.4 ref: 3818fb14bd..af2cb8f052 for: 4.3.1 WT-4972 Add new RHEL Evergreen build variant WT-4975 Migrate Jenkins “wiredtiger-pull-request-asan” job to Evergreen WT-5123 Fill multi-paragraph comments WT-5150 LAS sweep is not removing the entries that are no longer required WT-5161 Remove deprecated git.apply_patch WT-5163 Fix ignored failure return in WT_CURSOR.next when random retrieval configured WT-5164 Fix inconsistent underscore/dash output WT-5166 Allow configuring configure flags in evergreen builds
* Import wiredtiger: 956384325e5ff99567ea7b63b1b87b7bb62c76b8 from branch ↵Luke Chen2019-08-281-1/+28
| | | | | | | | | | | | mongodb-4.4 ref: 7dfd939186..956384325e for: 4.3.1 WT-4831 Add option to python tests to not fail if stdout is not empty WT-4935 Add a perf test to find out the wiredtiger_calc_modify overhead WT-5062 Adjust the record size to consume less size WT-5063 Return proper error message for cursor modify operation for not supported cursor types
* Import wiredtiger: 7dfd9391862bc9a6d84868c4dc51689c45a3aacf from branch ↵Luke Chen2019-08-211-835/+780
| | | | | | | | | | | mongodb-4.4 ref: c809757d8b..7dfd939186 for: 4.3.1 WT-4658 Apply Clang Format WT-4810 Adding WT_ERR_ASSERT and WT_RET_ASSERT macros WT-5046 Prepared transactions aren't properly cleared from global table with WT_CONN_LOG_DEBUG_MODE enabled
* Import wiredtiger: 19fd4ed45b3a2a8c119b68015113630b0c060e5f from branch ↵Luke Chen2019-08-071-1/+1
| | | | | | | | | | mongodb-4.4 ref: c29f4c6030..19fd4ed45b for: 4.3.1 WT-4460 Optimize for in-order, non-overlapping modifications WT-4956 Handle the case where 4 billion updates are made to a page without eviction
* Import wiredtiger: b50d65e8560446e2cd205594e07bbcaa2305b144 from branch ↵Luke Chen2019-07-051-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | mongodb-4.2 ref: d86b3a8a33..b50d65e856 for: 4.3.1 WT-4502 Assertion checking hazard pointers on page discard is too strong WT-4733 Change test/format to do longer-term repeatable read testing WT-4743 Fix memory leaks and core dumps in page-split error handling WT-4786 Coverity: Invalid format specifiers in printf-like invocations WT-4805 Modify error message verification for test_prepare04.py WT-4812 Fix the Python distribution script for Python3 changes WT-4818 Add debugging of bad read file descriptor when files are missing during recovery WT-4840 WT_CURSOR.modify must require explicit, snapshot-isolation transaction WT-4864 Coverity: Redundant NULL check WT-4866 Coverity: WT_SESSION.import can leak memory WT-4867 Skip assertion when reserved updates are seen WT-4882 Improve checkpoint performance when there are large metadata pages WT-4887 Skip read timestamp required assert during recovery WT-4888 Remove support for Berkeley DB WT-4891 WT_SESSION.verify memory allocation overrun WT-4895 Fix debug eviction mode so it chooses skew more randomly WT-4910 Port Windows SConstruct to Python 3
* Import wiredtiger: fa402fef1974b30ef61770caff58b0eabda97781 from branch ↵Luke Chen2019-01-101-4/+1
| | | | | | | | | | | | | mongodb-4.2 ref: 86012f8e40..fa402fef19 for: 4.1.7 WT-4444 Extend cursor operation tracking statistics WT-4483 Improve caching of small updates to large values WT-4505 Add ability to manage when prepared transactions appear in checkpoints WT-4518 Give applications a chance to handle panic before API panic returns WT-4522 Update WiredTiger copyrights to 2019
* Import wiredtiger: 5812c92f5fb2ed3b58d0398e5cbe1cb33380d450 from branch ↵Luke Chen2018-12-111-8/+6
| | | | | | | | | | | | | | | | mongodb-4.2 ref: fcb59a43a4..5812c92f5f for: 4.1.7 WT-4383 Update session statistics to reflect the operation statistics. WT-4384 Add documentation about session statistics cursor WT-4438 Use more accurate statistics for cursor cache totals WT-4454 Auto-generate Evergreen configuration when adding new 'make check' or csuite tests WT-4470 Minimize testing that requires TESTUTIL_ENABLE_LONG_TESTS WT-4479 Remove schema lock wait assertion from the test WT-4480 Fix duplicate backup cursor and archiving check WT-4481 Evergreen script cleanups