mirror of https://github.com/redis/redis.git
				
				
				
			In dbOverwrite moduleNotifyKeyUnlink should use old val (#8381)
The module notification was using the wrong value.
This commit is contained in:
		
							parent
							
								
									f28fccd2db
								
							
						
					
					
						commit
						0232778f35
					
				
							
								
								
									
										2
									
								
								src/db.c
								
								
								
								
							
							
						
						
									
										2
									
								
								src/db.c
								
								
								
								
							|  | @ -226,7 +226,7 @@ void dbOverwrite(redisDb *db, robj *key, robj *val) { | |||
|     /* Although the key is not really deleted from the database, we regard 
 | ||||
|     overwrite as two steps of unlink+add, so we still need to call the unlink  | ||||
|     callback of the module. */ | ||||
|     moduleNotifyKeyUnlink(key,val); | ||||
|     moduleNotifyKeyUnlink(key,old); | ||||
|     dictSetVal(db->dict, de, val); | ||||
| 
 | ||||
|     if (server.lazyfree_lazy_server_del) { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue