kobe860219 commented on a change in pull request #301:
URL:
https://github.com/apache/incubator-yunikorn-k8shim/pull/301#discussion_r717776488
##########
File path: pkg/cache/placeholder_manager.go
##########
@@ -165,3 +167,16 @@ func (mgr *PlaceholderManager) isRunning() bool {
func (mgr *PlaceholderManager) setRunning(flag bool) {
mgr.running.Store(flag)
}
+
+func (mgr *PlaceholderManager) getOrphanPodsLength() int {
+ mgr.Lock()
+ defer mgr.Unlock()
+ orphanPodsLength := len(mgr.orphanPods)
Review comment:
I will remove unessential variable.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]