Differentiate by environment in fscache eviction (#361)

This commit is contained in:
Soam Vasani
2017-09-28 10:00:23 -07:00
committed by GitHub
parent 557c2ee6fc
commit 6734bfbf7b
2 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -620,7 +620,7 @@ func (gp *GenericPool) CleanupFunctionService(podName string) error {
func (gp *GenericPool) idlePodReaper() {
for {
time.Sleep(time.Minute)
podNames, err := gp.fsCache.ListOld(gp.idlePodReapTime)
podNames, err := gp.fsCache.ListOld(&gp.env.Metadata, gp.idlePodReapTime)
if err != nil {
log.Printf("Error reaping idle pods: %v", err)
continue