mirror of
				https://github.com/isar/libmdbx.git
				synced 2025-10-31 15:38:57 +08:00 
			
		
		
		
	mdbx-test: fix speculum-check iterator.
Change-Id: Idaeea908fdcd7b2c1248ae10eeb7f394d69bb987
This commit is contained in:
		| @@ -749,8 +749,8 @@ void testcase::speculum_check_cursor(const char *where, const char *stage, | ||||
|   MDBX_val cursor_key = {}; | ||||
|   MDBX_val cursor_data = {}; | ||||
|   int err; | ||||
|   if (std::next(it) == speculum.end() && op == MDBX_PREV && | ||||
|       (config.params.table_flags & MDBX_DUPSORT)) { | ||||
|   if (it != speculum.end() && std::next(it) == speculum.end() && | ||||
|       op == MDBX_PREV && (config.params.table_flags & MDBX_DUPSORT)) { | ||||
|     /* Workaround for MDBX/LMDB flaw */ | ||||
|     err = mdbx_cursor_get(cursor, &cursor_key, &cursor_data, MDBX_LAST); | ||||
|     if (err == MDBX_SUCCESS) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user