Skip to content

Commit

Permalink
fix wm update
Browse files Browse the repository at this point in the history
  • Loading branch information
Hitenjain14 committed Feb 17, 2024
1 parent 87b1921 commit be1740c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/go/0chain.net/blobbercore/writemarker/entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (wm *WriteMarkerEntity) UpdateStatus(ctx context.Context, status WriteMarke
}

if status == Committed {
err = db.Exec("UPDATE write_markers SET status=1 WHERE sequence BETWEEN ? AND ? AND allocation_id = ?", startSeq, endSeq).Error
err = db.Exec("UPDATE write_markers SET status=1 WHERE sequence BETWEEN ? AND ? AND allocation_id = ?", startSeq, endSeq, wm.WM.AllocationID).Error
if err != nil {
return err
}
Expand Down

0 comments on commit be1740c

Please sign in to comment.