Skip to content

Commit 67f77c0

Browse files
committed
Bug#35443609 NDBT Test Step setup failure should delete Ndb object
Get test framework to delete Ndb object when wait for ready times out. Change-Id: Id6c93b8e52caaeae8dac4f79698e85b5bb5211a3
1 parent b96cde9 commit 67f77c0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

storage/ndb/test/src/NDBT_Test.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2003, 2021, Oracle and/or its affiliates.
2+
Copyright (c) 2003, 2023, Oracle and/or its affiliates.
33
44
This program is free software; you can redistribute it and/or modify
55
it under the terms of the GNU General Public License, version 2.0,
@@ -307,6 +307,8 @@ NDBT_Step::setUp(Ndb_cluster_connection& con){
307307
int result = m_ndb->waitUntilReady(300); // 5 minutes
308308
if (result != 0){
309309
g_err << "Ndb was not ready" << endl;
310+
delete m_ndb;
311+
m_ndb = NULL;
310312
return NDBT_FAILED;
311313
}
312314
break;

0 commit comments

Comments
 (0)