Skip to content

Commit

Permalink
[errors] address a few todos
Browse files Browse the repository at this point in the history
  • Loading branch information
tmc committed Jun 18, 2018
1 parent cd8d1a2 commit aad2725
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions src/sybil/column_store_io.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,6 @@ func (tb *TableBlock) SaveToColumns(filename string) error {

// TODO:
if nb == nil || nb.Info.NumRecords != int32(len(tb.RecordList)) {
// TODO//Error("COULDNT VALIDATE CONSISTENCY FOR RECENTLY SAVED BLOCK!", filename)
return fmt.Errorf("could not validate consistency for recently saved block %v", filename)
}

Expand All @@ -493,7 +492,6 @@ func (tb *TableBlock) SaveToColumns(filename string) error {
return err
}
if nb == nil || len(nb.RecordList) != len(tb.RecordList) {
// TODO//Error("DEEP VALIDATION OF BLOCK FAILED CONSISTENCY CHECK!", filename)
return fmt.Errorf("deep validation of block failed consistency check %v", filename)
}
}
Expand Down
4 changes: 1 addition & 3 deletions src/sybil/table_ingest.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package sybil

import (
"io/ioutil"
"log"
"os"
"path"
"strings"
Expand Down Expand Up @@ -42,8 +41,7 @@ func (t *Table) IngestRecords(blockname string) error {
}
t.newRecords = make(RecordList, 0)
if err := t.SaveTableInfo("info"); err != nil {
//return errors.Wrap(err, "t.SaveTableInfo")
log.Println(err)
Warn(errors.Wrap(err, "t.SaveTableInfo"))
}
t.ReleaseRecords()

Expand Down

0 comments on commit aad2725

Please sign in to comment.