Skip to content
This repository was archived by the owner on Feb 10, 2023. It is now read-only.

Commit 538d5b1

Browse files
committed
loader: log when drop table
1 parent 3494c96 commit 538d5b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/common/loader.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ func restoreTableSchema(log *xlog.Log, overwrite bool, tables []string, conn *Co
9999
for _, query := range querys {
100100
if !strings.HasPrefix(query, "/*") && query != "" {
101101
if overwrite {
102+
log.Info("drop(overwrite.is.true).table[%s.%s]", db, name)
102103
dropQuery := fmt.Sprintf("DROP TABLE IF EXISTS `%s`.`%s`", db, name)
103104
err = conn.Execute(dropQuery)
104105
AssertNil(err)

0 commit comments

Comments
 (0)