Skip to content

Commit

Permalink
fix releasing record part
Browse files Browse the repository at this point in the history
There was an infinity loop.
  • Loading branch information
gernest committed Feb 19, 2024
1 parent 8bc619c commit 55839f2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion internal/api/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
)

func ReceiveEvent(w http.ResponseWriter, r *http.Request) {
w.Header().Set("X-Content-Type-Options", "nosniff")
w.Header().Set("Access-Control-Allow-Origin", r.Header.Get("Origin"))
w.Header().Set("Access-Control-Allow-Methods", http.MethodPost)
w.Header().Add("Access-Control-Allow-Headers", "Content-Type")
Expand Down
2 changes: 1 addition & 1 deletion internal/lsm/lsm.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (r *RecordPart) ID() string {
}

func (r *RecordPart) Release() {
r.Release()
r.record.Release()
}

func NewPart(r arrow.Record, idx index.Full) *RecordPart {
Expand Down

0 comments on commit 55839f2

Please sign in to comment.