Skip to content

Commit

Permalink
Merge branch 'main' into issue16716
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Jun 19, 2024
2 parents 861bcf2 + b0bd74f commit be9759a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion pkg/container/vector/reuse.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ func (v Vector) TypeName() string {
}

func NewVecFromReuse() *Vector {
v := reuse.Alloc[Vector](nil)
//v := reuse.Alloc[Vector](nil)
v := new(Vector)
v.nsp = &nulls.Nulls{}
// if v.OnUsed {
// panic("alloc onused vector")
// }
Expand Down
3 changes: 1 addition & 2 deletions pkg/container/vector/vector.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (

"github.com/matrixorigin/matrixone/pkg/common/moerr"
"github.com/matrixorigin/matrixone/pkg/common/mpool"
"github.com/matrixorigin/matrixone/pkg/common/reuse"
"github.com/matrixorigin/matrixone/pkg/container/nulls"
"github.com/matrixorigin/matrixone/pkg/container/types"
"github.com/matrixorigin/matrixone/pkg/vectorize/moarray"
Expand Down Expand Up @@ -446,7 +445,7 @@ func (v *Vector) Free(mp *mpool.MPool) {
// }
// v.FreeMsg = append(v.FreeMsg, time.Now().String()+" : typ="+v.typ.DescString()+" "+string(debug.Stack()))

reuse.Free[Vector](v, nil)
//reuse.Free[Vector](v, nil)
}

func (v *Vector) MarshalBinary() ([]byte, error) {
Expand Down

0 comments on commit be9759a

Please sign in to comment.