mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	etcd2: remove unnecessary PrevValue in SetOption
This commit is contained in:
		@@ -525,7 +525,6 @@ func (h *etcdHelper) GuaranteedUpdate(
 | 
				
			|||||||
		startTime := time.Now()
 | 
							startTime := time.Now()
 | 
				
			||||||
		// Swap origBody with data, if origBody is the latest etcd data.
 | 
							// Swap origBody with data, if origBody is the latest etcd data.
 | 
				
			||||||
		opts := etcd.SetOptions{
 | 
							opts := etcd.SetOptions{
 | 
				
			||||||
			PrevValue: origBody,
 | 
					 | 
				
			||||||
			PrevIndex: index,
 | 
								PrevIndex: index,
 | 
				
			||||||
			TTL:       time.Duration(ttl) * time.Second,
 | 
								TTL:       time.Duration(ttl) * time.Second,
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user