mirror of
				https://github.com/minio/minio.git
				synced 2025-10-30 00:05:02 -04:00 
			
		
		
		
	fix: update metacache entry only once (#16072)
This commit is contained in:
		
							parent
							
								
									853c4de75a
								
							
						
					
					
						commit
						8441a3bf5f
					
				| @ -155,9 +155,6 @@ func (z *erasureServerPools) listPath(ctx context.Context, o *listPathOptions) ( | |||||||
| 						return | 						return | ||||||
| 					case <-t.C: | 					case <-t.C: | ||||||
| 						meta.lastHandout = time.Now() | 						meta.lastHandout = time.Now() | ||||||
| 						if rpc == nil { |  | ||||||
| 							meta, _ = localMetacacheMgr.updateCacheEntry(meta) |  | ||||||
| 						} |  | ||||||
| 						meta, _ = rpc.UpdateMetacacheListing(ctx, meta) | 						meta, _ = rpc.UpdateMetacacheListing(ctx, meta) | ||||||
| 					} | 					} | ||||||
| 				}(*c) | 				}(*c) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user