@@ -103,9 +103,8 @@ NdbEventOperationImpl::NdbEventOperationImpl(NdbEventOperation &f,
103
103
m_stop_gci(),
104
104
m_allow_empty_update(false )
105
105
{
106
- DBUG_ENTER ( " NdbEventOperationImpl::NdbEventOperationImpl " ) ;
106
+ DBUG_TRACE ;
107
107
init ();
108
- DBUG_VOID_RETURN;
109
108
}
110
109
111
110
NdbEventOperationImpl::NdbEventOperationImpl (Ndb *theNdb,
@@ -119,16 +118,14 @@ NdbEventOperationImpl::NdbEventOperationImpl(Ndb *theNdb,
119
118
m_stop_gci(),
120
119
m_allow_empty_update(false )
121
120
{
122
- DBUG_ENTER ( " NdbEventOperationImpl::NdbEventOperationImpl [evnt] " ) ;
121
+ DBUG_TRACE ;
123
122
init ();
124
- DBUG_VOID_RETURN;
125
123
}
126
124
127
125
void
128
126
NdbEventOperationImpl::init ()
129
127
{
130
- DBUG_ENTER (" NdbEventOperationImpl::init" );
131
-
128
+ DBUG_TRACE;
132
129
m_magic_number = 0 ;
133
130
mi_type = 0 ;
134
131
m_change_mask = 0 ;
@@ -176,16 +173,15 @@ NdbEventOperationImpl::init()
176
173
m_has_error= 0 ;
177
174
178
175
DBUG_PRINT (" exit" ,(" this: %p oid: %u" , this , m_oid));
179
- DBUG_VOID_RETURN;
180
176
}
181
177
182
178
NdbEventOperationImpl::~NdbEventOperationImpl ()
183
179
{
184
- DBUG_ENTER ( " NdbEventOperationImpl::~NdbEventOperationImpl " ) ;
180
+ DBUG_TRACE ;
185
181
m_magic_number= 0 ;
186
182
187
183
if (m_oid == ~(Uint32)0 )
188
- DBUG_VOID_RETURN ;
184
+ return ;
189
185
190
186
stop ();
191
187
@@ -213,8 +209,6 @@ NdbEventOperationImpl::~NdbEventOperationImpl()
213
209
// NOTE! Destroys the Event which is owned by the NdbEventImpl pointer
214
210
delete m_eventImpl->m_facade ;
215
211
}
216
-
217
- DBUG_VOID_RETURN;
218
212
}
219
213
220
214
NdbEventOperation::State
@@ -4263,7 +4257,7 @@ NdbEventOperation*
4263
4257
NdbEventBuffer::createEventOperation (const char * eventName,
4264
4258
NdbError &theError)
4265
4259
{
4266
- DBUG_ENTER ( " NdbEventBuffer::createEventOperation " ) ;
4260
+ DBUG_TRACE ;
4267
4261
4268
4262
if (m_ndb->theImpl ->m_ev_op == NULL )
4269
4263
{
@@ -4277,19 +4271,19 @@ NdbEventBuffer::createEventOperation(const char* eventName,
4277
4271
if (!event)
4278
4272
{
4279
4273
theError.code = dict->getNdbError ().code ;
4280
- DBUG_RETURN ( NULL ) ;
4274
+ return nullptr ;
4281
4275
}
4282
4276
4283
4277
NdbEventOperation* tOp= new NdbEventOperation (m_ndb, event);
4284
4278
if (tOp == 0 )
4285
4279
{
4286
4280
theError.code = 4000 ;
4287
- DBUG_RETURN ( NULL ) ;
4281
+ return nullptr ;
4288
4282
}
4289
4283
if (tOp->getState () != NdbEventOperation::EO_CREATED) {
4290
4284
theError.code = tOp->getNdbError ().code ;
4291
4285
delete tOp;
4292
- DBUG_RETURN ( NULL ) ;
4286
+ return nullptr ;
4293
4287
}
4294
4288
// add user reference
4295
4289
// removed in dropEventOperation
@@ -4298,26 +4292,26 @@ NdbEventBuffer::createEventOperation(const char* eventName,
4298
4292
getEventOperationImpl (tOp)->m_ref_count ,
4299
4293
getEventOperationImpl (tOp), m_ndb->getReference (),
4300
4294
m_ndb->getNdbObjectName ()));
4301
- DBUG_RETURN ( tOp) ;
4295
+ return tOp;
4302
4296
}
4303
4297
4304
4298
NdbEventOperationImpl*
4305
4299
NdbEventBuffer::createEventOperationImpl (NdbEventImpl* event,
4306
4300
NdbError &theError)
4307
4301
{
4308
- DBUG_ENTER ( " NdbEventBuffer::createEventOperationImpl " ) ;
4302
+ DBUG_TRACE ;
4309
4303
NdbEventOperationImpl* tOp= new NdbEventOperationImpl (m_ndb, event);
4310
4304
if (tOp == 0 )
4311
4305
{
4312
4306
theError.code = 4000 ;
4313
- DBUG_RETURN ( NULL ) ;
4307
+ return nullptr ;
4314
4308
}
4315
4309
if (tOp->getState () != NdbEventOperation::EO_CREATED) {
4316
4310
theError.code = tOp->getNdbError ().code ;
4317
4311
delete tOp;
4318
- DBUG_RETURN ( NULL ) ;
4312
+ return nullptr ;
4319
4313
}
4320
- DBUG_RETURN ( tOp) ;
4314
+ return tOp;
4321
4315
}
4322
4316
4323
4317
void
0 commit comments