Skip to content

Commit e57ac3b

Browse files
Pekka NousiainenPiotr Obrzut
authored andcommitted
wl#7614 un-inited1.diff
un-initialized member + misc (cherry picked from commit 8606b5e40dac92fc7da43d7f04e3e49b48000861)
1 parent e857153 commit e57ac3b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

storage/ndb/tools/NdbImportImpl.cpp

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,7 +1298,7 @@ operator<<(NdbOut& out, const NdbImportImpl::Job& job)
12981298
{
12991299
const Error& error = job.m_error;
13001300
const char* typetext = error.gettypetext();
1301-
out << "error[" << typetext << "-" << error.code << "]";
1301+
out << " error[" << typetext << "-" << error.code << "]";
13021302
}
13031303
return out;
13041304
}
@@ -1313,7 +1313,7 @@ operator<<(NdbOut& out, const NdbImportImpl::Team& team)
13131313
{
13141314
const Error& error = team.m_error;
13151315
const char* typetext = error.gettypetext();
1316-
out << "error[" << typetext << "-" << error.code << "]";
1316+
out << " error[" << typetext << "-" << error.code << "]";
13171317
}
13181318
return out;
13191319
}
@@ -1559,6 +1559,7 @@ NdbImportImpl::CsvInputWorker::CsvInputWorker(Team& team, uint n) :
15591559
m_buf(true)
15601560
{
15611561
m_inputstate = InputState::State_null;
1562+
m_csvinput = 0;
15621563
m_firstread = false;
15631564
m_eof = false;
15641565
}
@@ -3506,6 +3507,11 @@ NdbImportImpl::DiagWorker::write_result()
35063507
uint64 rows = 0;
35073508
uint64 reject = 0;
35083509
uint64 temperrors = 0;
3510+
if (team.m_state != TeamState::State_stopped)
3511+
{
3512+
// not worth crashing
3513+
team.m_timer.stop();
3514+
}
35093515
uint64 runtime = team.m_timer.elapsed_msec();
35103516
uint64 utime = team.m_stat_utime->m_sum;
35113517
const Error& error = team.m_error;

0 commit comments

Comments
 (0)