Skip to content

Commit

Permalink
removed rest code for direct I/O.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryogrid committed Jul 15, 2024
1 parent 349387b commit 2d11353
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/samehada/samehada.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package samehada
import (
"errors"
"fmt"
"github.com/ncw/directio"
"github.com/ryogrid/SamehadaDB/lib/catalog"
"github.com/ryogrid/SamehadaDB/lib/common"
"github.com/ryogrid/SamehadaDB/lib/concurrency"
Expand Down Expand Up @@ -46,8 +45,8 @@ func reconstructIndexDataOfATbl(t *catalog.TableMetadata, c *catalog.Catalog, dm
executionEngine := &executors.ExecutionEngine{}
executorContext := executors.NewExecutorContext(c, t.Table().GetBufferPoolManager(), txn)

//zeroClearedBuf := make([]byte, common.PageSize)
zeroClearedBuf := directio.AlignedBlock(common.PageSize)
zeroClearedBuf := make([]byte, common.PageSize)
//zeroClearedBuf := directio.AlignedBlock(common.PageSize)
bpm := t.Table().GetBufferPoolManager()

for colIdx, index_ := range t.Indexes() {
Expand Down

0 comments on commit 2d11353

Please sign in to comment.