From 8d4fd13ef934f57f09b73ae7788dce3cb82136d5 Mon Sep 17 00:00:00 2001 From: ngaut Date: Wed, 9 Dec 2015 12:00:31 +0800 Subject: [PATCH] *: Tiny clean up --- table/tables/tables.go | 4 ++-- tidb.go | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/table/tables/tables.go b/table/tables/tables.go index fc8b2696d7..dce6b9eda7 100644 --- a/table/tables/tables.go +++ b/table/tables/tables.go @@ -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) } diff --git a/tidb.go b/tidb.go index 7b7da763e2..74f5fd105b 100644 --- a/tidb.go +++ b/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.