Merge pull request #690 from pingcap/ngaut/tiny-cleanup

*: Tiny clean up
This commit is contained in:
qiuyesuifeng
2015-12-09 12:31:27 +08:00
2 changed files with 2 additions and 4 deletions

View File

@ -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)
}

View File

@ -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.