Skip to content

Commit 49b4621

Browse files
committed
Bug#33855045 Test ndbinfo_upgrade fails on valgrind builds [#5]
Use DBUG_TRACE in changed functions Change-Id: Idfd60e26dc6ec45f61cb43fea6dfe0ec21c615e1
1 parent 3b63fb2 commit 49b4621

File tree

1 file changed

+14
-20
lines changed

1 file changed

+14
-20
lines changed

storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp

+14-20
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,8 @@ NdbEventOperationImpl::NdbEventOperationImpl(NdbEventOperation &f,
103103
m_stop_gci(),
104104
m_allow_empty_update(false)
105105
{
106-
DBUG_ENTER("NdbEventOperationImpl::NdbEventOperationImpl");
106+
DBUG_TRACE;
107107
init();
108-
DBUG_VOID_RETURN;
109108
}
110109

111110
NdbEventOperationImpl::NdbEventOperationImpl(Ndb *theNdb,
@@ -119,16 +118,14 @@ NdbEventOperationImpl::NdbEventOperationImpl(Ndb *theNdb,
119118
m_stop_gci(),
120119
m_allow_empty_update(false)
121120
{
122-
DBUG_ENTER("NdbEventOperationImpl::NdbEventOperationImpl [evnt]");
121+
DBUG_TRACE;
123122
init();
124-
DBUG_VOID_RETURN;
125123
}
126124

127125
void
128126
NdbEventOperationImpl::init()
129127
{
130-
DBUG_ENTER("NdbEventOperationImpl::init");
131-
128+
DBUG_TRACE;
132129
m_magic_number = 0;
133130
mi_type = 0;
134131
m_change_mask = 0;
@@ -176,16 +173,15 @@ NdbEventOperationImpl::init()
176173
m_has_error= 0;
177174

178175
DBUG_PRINT("exit",("this: %p oid: %u", this, m_oid));
179-
DBUG_VOID_RETURN;
180176
}
181177

182178
NdbEventOperationImpl::~NdbEventOperationImpl()
183179
{
184-
DBUG_ENTER("NdbEventOperationImpl::~NdbEventOperationImpl");
180+
DBUG_TRACE;
185181
m_magic_number= 0;
186182

187183
if (m_oid == ~(Uint32)0)
188-
DBUG_VOID_RETURN;
184+
return;
189185

190186
stop();
191187

@@ -213,8 +209,6 @@ NdbEventOperationImpl::~NdbEventOperationImpl()
213209
// NOTE! Destroys the Event which is owned by the NdbEventImpl pointer
214210
delete m_eventImpl->m_facade;
215211
}
216-
217-
DBUG_VOID_RETURN;
218212
}
219213

220214
NdbEventOperation::State
@@ -4263,7 +4257,7 @@ NdbEventOperation*
42634257
NdbEventBuffer::createEventOperation(const char* eventName,
42644258
NdbError &theError)
42654259
{
4266-
DBUG_ENTER("NdbEventBuffer::createEventOperation");
4260+
DBUG_TRACE;
42674261

42684262
if (m_ndb->theImpl->m_ev_op == NULL)
42694263
{
@@ -4277,19 +4271,19 @@ NdbEventBuffer::createEventOperation(const char* eventName,
42774271
if (!event)
42784272
{
42794273
theError.code= dict->getNdbError().code;
4280-
DBUG_RETURN(NULL);
4274+
return nullptr;
42814275
}
42824276

42834277
NdbEventOperation* tOp= new NdbEventOperation(m_ndb, event);
42844278
if (tOp == 0)
42854279
{
42864280
theError.code= 4000;
4287-
DBUG_RETURN(NULL);
4281+
return nullptr;
42884282
}
42894283
if (tOp->getState() != NdbEventOperation::EO_CREATED) {
42904284
theError.code= tOp->getNdbError().code;
42914285
delete tOp;
4292-
DBUG_RETURN(NULL);
4286+
return nullptr;
42934287
}
42944288
// add user reference
42954289
// removed in dropEventOperation
@@ -4298,26 +4292,26 @@ NdbEventBuffer::createEventOperation(const char* eventName,
42984292
getEventOperationImpl(tOp)->m_ref_count,
42994293
getEventOperationImpl(tOp), m_ndb->getReference(),
43004294
m_ndb->getNdbObjectName()));
4301-
DBUG_RETURN(tOp);
4295+
return tOp;
43024296
}
43034297

43044298
NdbEventOperationImpl*
43054299
NdbEventBuffer::createEventOperationImpl(NdbEventImpl* event,
43064300
NdbError &theError)
43074301
{
4308-
DBUG_ENTER("NdbEventBuffer::createEventOperationImpl");
4302+
DBUG_TRACE;
43094303
NdbEventOperationImpl* tOp= new NdbEventOperationImpl(m_ndb, event);
43104304
if (tOp == 0)
43114305
{
43124306
theError.code= 4000;
4313-
DBUG_RETURN(NULL);
4307+
return nullptr;
43144308
}
43154309
if (tOp->getState() != NdbEventOperation::EO_CREATED) {
43164310
theError.code= tOp->getNdbError().code;
43174311
delete tOp;
4318-
DBUG_RETURN(NULL);
4312+
return nullptr;
43194313
}
4320-
DBUG_RETURN(tOp);
4314+
return tOp;
43214315
}
43224316

43234317
void

0 commit comments

Comments
 (0)