Added code to prevent deletion of active fn pod (#1724)

Co-authored-by: Vishal <vishal-biyani@users.noreply.github.com>
This commit is contained in:
Rahul Bhati
2020-09-28 14:09:55 +05:30
committed by GitHub
co-authored by Vishal
parent ef65602b79
commit c605d1d2c6
3 changed files with 16 additions and 10 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ func (fsc *FunctionServiceCache) service() {
}
fsc.logger.Info("function service cache", zap.Int("item_count", len(funcCopy)), zap.Strings("cache", info))
case LISTOLDPOOL:
fscs := fsc.connFunctionCache.ListValue()
fscs := fsc.connFunctionCache.ListAvailableValue()
funcObjects := make([]*FuncSvc, 0)
for _, funcSvc := range fscs {
fsvc := funcSvc.(*FuncSvc)