зеркало из https://github.com/github/vitess-gh.git
fix typo in error msg in table_info
InvalidateForDDL should allow processingin shutdown mode
This commit is contained in:
Родитель
e333e1b7d6
Коммит
97e4e35b64
|
@ -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,
|
||||
|
|
|
@ -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()
|
||||
|
|
Загрузка…
Ссылка в новой задаче