Skip to content

Commit

Permalink
Fix issue with summing up record sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Dec 7, 2020
1 parent 3ab376d commit d7d8def
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dbs/dbs.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func executeAll(w http.ResponseWriter, stm string, args ...interface{}) (int64,
return 0, err
}
s, e := utils.RecordSize(rec)
if e != nil {
if e == nil {
size += s
}
}
Expand Down Expand Up @@ -279,7 +279,7 @@ func execute(w http.ResponseWriter, stm string, cols []string, vals []interface{
return 0, err
}
s, e := utils.RecordSize(rec)
if e != nil {
if e == nil {
size += s
}
}
Expand Down

0 comments on commit d7d8def

Please sign in to comment.