hauerwu commented on code in PR #2920:
URL: https://github.com/apache/apisix-dashboard/pull/2920#discussion_r1474107432
##########
api/internal/core/store/store.go:
##########
@@ -109,12 +110,20 @@ func ReInit() error {
return err
}
}
+
+ //clear storeNeedReInit
+ storeNeedReInit = storeNeedReInit[:0]
Review Comment:
when for loop return err, this line will not be excute,and the same store
may be add to the storeNeedReInit slice multiply times, and in some condition
the storeNeedReInit slice may increase to a very huge size
--
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]