在一些特定的情况下Close会报空引用 #1176
Labels
No Label
backport/done
backport/v1
blocked
db
oracle
db
sqlserver
duplicate
feature
cache
frontport/done
frontport/main
invalid
kind
breaking
kind
bug
kind
build
kind
dependencies
kind
docs
kind
driver
kind
enhancement
kind
feature
kind
performance
kind
proposal
kind
question
kind
refactor
kind
testing
need
feedback
need
test
proposal:accepted
RaspBerry Pi
regression
skip-changelog
upstream
wip
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xorm/xorm#1176
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
在特定的环境下会报空引用,建议在Close()下加上空引用检查
Could you show how did you use
Engine
andEngine
.Close?linux
打开最大文件数比较小,并发超过的时候会出现这个问题。
Please show codes about how you are using
Engine
here.1、在main中我使用了 defer engine.Close(),然后10个协程并发处理数据库。其他的就是正常的增删改查了。
2、没有显示使用engine.NewSession()方法。
3、没在main以外的任何地方使用engine.Close()
4、当时我还在用其他程序测试多线程并发,线程数超过了fs.file-max=1024的值。