mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-25 22:46:34 +08:00
优化KV存储数据表关闭后的错误提示
This commit is contained in:
@@ -165,6 +165,10 @@ func (this *Query[T]) FieldOffset(fieldOffset []byte) *Query[T] {
|
||||
//}
|
||||
|
||||
func (this *Query[T]) FindAll(fn IteratorFunc[T]) (err error) {
|
||||
if this.table != nil && this.table.isClosed {
|
||||
return NewTableClosedErr(this.table.name)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
var panicErr = recover()
|
||||
if panicErr != nil {
|
||||
|
||||
Reference in New Issue
Block a user