mirror of
				https://github.com/isar/libmdbx.git
				synced 2025-10-31 15:38:57 +08:00 
			
		
		
		
	lmdb: ITS#8190 fix cursor EOF bug.
Change-Id: I97556bc521e1d4d4ea9f3e43c14a8a2fe62b8231
This commit is contained in:
		
							
								
								
									
										4
									
								
								mdb.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								mdb.c
									
									
									
									
									
								
							| @@ -5754,8 +5754,10 @@ set2: | ||||
|  | ||||
| 	if (leaf == NULL) { | ||||
| 		mdb_debug("===> inexact leaf not found, goto sibling"); | ||||
| 		if ((rc = mdb_cursor_sibling(mc, 1)) != MDB_SUCCESS) | ||||
| 		if ((rc = mdb_cursor_sibling(mc, 1)) != MDB_SUCCESS) { | ||||
| 			mc->mc_flags |= C_EOF; | ||||
| 			return rc;		/* no entries matched */ | ||||
| 		} | ||||
| 		mp = mc->mc_pg[mc->mc_top]; | ||||
| 		mdb_cassert(mc, IS_LEAF(mp)); | ||||
| 		leaf = NODEPTR(mp, 0); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user