From 70078490adc1949da5cef91e9f850b82091017fe Mon Sep 17 00:00:00 2001 From: Ewan Chou Date: Thu, 17 Dec 2015 17:55:17 +0800 Subject: [PATCH] meta: toggle alloc id log. --- meta/autoid/autoid.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta/autoid/autoid.go b/meta/autoid/autoid.go index 132be1edfc..d926decb88 100644 --- a/meta/autoid/autoid.go +++ b/meta/autoid/autoid.go @@ -68,7 +68,9 @@ func (alloc *allocator) Alloc(tableID int64) (int64, error) { } alloc.base++ - log.Infof("Alloc id %d, table ID:%d, from %p, database ID:%d", alloc.base, tableID, alloc, alloc.dbID) + if kv.LogTxn { + log.Debugf("Alloc id %d, table ID:%d, from %p, database ID:%d", alloc.base, tableID, alloc, alloc.dbID) + } return alloc.base, nil }