Merge pull request #690 from pingcap/ngaut/tiny-cleanup
*: Tiny clean up
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
||||
|
||||
2
tidb.go
2
tidb.go
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user