码迷,mamicode.com
首页 > 其他好文 > 详细

Found 1 slaves: Use of uninitialized value in printf at /usr/local/percona-toolkit/bin/pt-online-schema-change line 8489

时间:2017-07-04 18:28:23      阅读:536      评论:0      收藏:0      [点我收藏+]

标签:mod   nbsp   span   miss   code   percona   use   more   tool   

1. problem description:

   as the title show, i miss the first problem using pt-online-schema-change tool to modify the table online.

   no more message print in the console .

 

2. sulution:

   see the line 8489 of the file ‘pt-online-schema-change‘, you will see code

printf("%s -> %s:%s\n", $cxn->name(), $cxn->{dsn}->{h}, $cxn->{dsn}->{P});

  copy and annotation,

one by one , test name(), {dsn}, {dsn}->{h}, {dsn}->{P},

you will find that  $cxn->{dsn}->{P} is null.

take it away and try again, you will success!

 

Found 1 slaves: Use of uninitialized value in printf at /usr/local/percona-toolkit/bin/pt-online-schema-change line 8489

标签:mod   nbsp   span   miss   code   percona   use   more   tool   

原文地址:http://www.cnblogs.com/rocky-fang/p/7117421.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!