vinyl: create autocommit transaction for index.get
If index.get is called outside a transaction, we use the global read view for it and set tx to NULL. This works fine for now, but may result in dirty reads in a single statement, because prepared but not yet committed to WAL statements are visible in the global read view. We are planning to fix it in the tx manager. Let's make index.get create a dummy transaction so once we fix it, index.get will always return committed statements. Note, index.pairs already creates a dummy transaction if called outside a transaction (see vinyl_index_create_iterator) so this patch makes behavior consistent across both read paths. Needed for #5522 NO_DOC=refactoring NO_TEST=refactoring NO_CHANGELOG=refactoring
Loading
Please register or sign in to comment