-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clean compile before put compile to pool (#11382)
原来是在从pool get的时候clear。 会让调用方误以为Run这个函数使用之后,Compile对象还存在。但是实际上它是可能存在,也可能不存在。 因为当并发很高,其他地方快速从pool中get一个compile出来,然后进行clear的话。那么会导致前面那个调用方所拿到的compile中的数据是错误的(比如affect_rows,因为被另外一个调用方clear了) 这个重构,给Run方法增加了返回值。如果需要信息,调用方应该从返回值中拿。当Run结束后,应该认为compile对象内的所有信息已经被清空。 Approved by: @m-schen, @nnsgmsone, @zhangxu19830126, @daviszhen, @qingxinhome
- Loading branch information
1 parent
4d0893f
commit 8404a1f
Showing
11 changed files
with
122 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.