From 97e4e35b64fd3066309343f07df02547f0736f98 Mon Sep 17 00:00:00 2001 From: Sugu Sougoumarane Date: Wed, 6 Jun 2012 13:49:51 -0700 Subject: [PATCH] fix typo in error msg in table_info InvalidateForDDL should allow processingin shutdown mode --- go/vt/tabletserver/schema_info.go | 2 +- go/vt/tabletserver/sqlquery.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/go/vt/tabletserver/schema_info.go b/go/vt/tabletserver/schema_info.go index f939cd073b..316019b42b 100644 --- a/go/vt/tabletserver/schema_info.go +++ b/go/vt/tabletserver/schema_info.go @@ -182,7 +182,7 @@ func (self *SchemaInfo) createTable(conn *DBConnection, tableName string) { panic(NewTabletError(FAIL, "Error fetching table %s: %v", tableName, err)) } if len(tables.Rows) != 1 { - panic(NewTabletError(FAIL, "meta roww for %s: %v", tableName, len(tables.Rows))) + panic(NewTabletError(FAIL, "rows for %s !=1: %v", tableName, len(tables.Rows))) } tableInfo := NewTableInfo( conn, diff --git a/go/vt/tabletserver/sqlquery.go b/go/vt/tabletserver/sqlquery.go index a96f941ca2..4de3d6793e 100644 --- a/go/vt/tabletserver/sqlquery.go +++ b/go/vt/tabletserver/sqlquery.go @@ -488,7 +488,7 @@ type DDLInvalidate struct { func (self *SqlQuery) InvalidateForDDL(ddl *DDLInvalidate, noOutput *string) (err error) { defer handleError(&err) - self.checkState(self.sessionId, false) + self.checkState(self.sessionId, true) // Accept DDLs in shut down mode *noOutput = "" self.mu.RLock() defer self.mu.RUnlock()