Skip to content

Commit

Permalink
preallocate transfer page matrixorigin#16953
Browse files Browse the repository at this point in the history
  • Loading branch information
Wenbin1002 committed Jul 1, 2024
1 parent e7c6f37 commit 0dd20e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/vm/engine/tae/db/test/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9019,7 +9019,7 @@ func TestPersistTransferTable(t *testing.T) {
Pages: make(chan *model.TransferPage, 1000000),
}
go model.Cleaner.Handler()
page := model.NewTransferHashPage(&id1, now, false,
page := model.NewTransferHashPage(&id1, now, 10, false,
model.WithTTL(time.Second),
)
ids := make([]types.Rowid, 10)
Expand Down Expand Up @@ -9104,7 +9104,7 @@ func TestClearPersistTransferTable(t *testing.T) {
}
go model.Cleaner.Handler()

page := model.NewTransferHashPage(&id1, now, false,
page := model.NewTransferHashPage(&id1, now, 10, false,
model.WithTTL(time.Second),
model.WithDiskTTL(2*time.Second),
)
Expand Down
1 change: 0 additions & 1 deletion pkg/vm/engine/tae/tables/txnentries/mergeobjects.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ func (entry *mergeObjectsEntry) prepareTransferPage() {
entry.pageIds = append(entry.pageIds, id)
_ = entry.rt.TransferTable.AddPage(page)
pages = append(pages, page)
k++
}
start = time.Now()
var blocks []objectio.BlockObject
Expand Down

0 comments on commit 0dd20e5

Please sign in to comment.