Skip to content

Commit

Permalink
*: Tiny clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
ngaut committed Dec 9, 2015
1 parent 38446bd commit 8d4fd13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions table/tables/tables.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,12 +304,12 @@ func (t *Table) UpdateRecord(ctx context.Context, h int64, oldData []interface{}
defer bs.Release()

// set new value
if err := t.setNewData(bs, h, touched, currentData); err != nil {
if err = t.setNewData(bs, h, touched, currentData); err != nil {
return errors.Trace(err)
}

// rebuild index
if err := t.rebuildIndices(bs, h, touched, oldData, currentData); err != nil {
if err = t.rebuildIndices(bs, h, touched, oldData, currentData); err != nil {
return errors.Trace(err)
}

Expand Down
2 changes: 0 additions & 2 deletions tidb.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ var (
domains: map[string]*domain.Domain{},
}
stores = make(map[string]kv.Driver)
// Debug is the switch for pprof. If Debug is true, tidb will start with pprof on.
Debug = true
// EnablePprof indicates whether to enable HTTP Pprof or not.
EnablePprof = os.Getenv("TIDB_PPROF") != "0"
// PprofAddr is the pprof url.
Expand Down

0 comments on commit 8d4fd13

Please sign in to comment.