Print the JSON in avro_alter
The test now prints the output in avro_alter. The replicate_from_master function also stops maxscale before removing the files.
This commit is contained in:
@ -55,6 +55,7 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
json_error_t err;
|
json_error_t err;
|
||||||
json_t* json = json_loads(line.c_str(), 0, &err);
|
json_t* json = json_loads(line.c_str(), 0, &err);
|
||||||
|
test.tprintf("%s", line.c_str());
|
||||||
test.add_result(json == NULL, "Failed to parse JSON: %s", line.c_str());
|
test.add_result(json == NULL, "Failed to parse JSON: %s", line.c_str());
|
||||||
json_decref(json);
|
json_decref(json);
|
||||||
nrows++;
|
nrows++;
|
||||||
|
@ -968,8 +968,9 @@ bool TestConnections::replicate_from_master()
|
|||||||
mysql_close(conn);
|
mysql_close(conn);
|
||||||
|
|
||||||
/** Clean up MaxScale directories */
|
/** Clean up MaxScale directories */
|
||||||
|
ssh_maxscale(true, "service maxscale stop");
|
||||||
prepare_binlog();
|
prepare_binlog();
|
||||||
ssh_maxscale(true, "service maxscale restart");
|
ssh_maxscale(true, "service maxscale start");
|
||||||
|
|
||||||
char log_file[256] = "";
|
char log_file[256] = "";
|
||||||
char log_pos[256] = "4";
|
char log_pos[256] = "4";
|
||||||
|
Reference in New Issue
Block a user