Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
886e1173
Commit
886e1173
authored
Mar 19, 2007
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - test_event
Fix compile error with gcc4
parent
09e403aa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
storage/ndb/test/ndbapi/test_event.cpp
storage/ndb/test/ndbapi/test_event.cpp
+5
-5
No files found.
storage/ndb/test/ndbapi/test_event.cpp
View file @
886e1173
...
@@ -842,11 +842,12 @@ int runEventListenerUntilStopped(NDBT_Context* ctx, NDBT_Step* step)
...
@@ -842,11 +842,12 @@ int runEventListenerUntilStopped(NDBT_Context* ctx, NDBT_Step* step)
int
result
=
NDBT_OK
;
int
result
=
NDBT_OK
;
const
NdbDictionary
::
Table
*
table
=
ctx
->
getTab
();
const
NdbDictionary
::
Table
*
table
=
ctx
->
getTab
();
HugoTransactions
hugoTrans
(
*
table
);
HugoTransactions
hugoTrans
(
*
table
);
Ndb
*
ndb
=
GETNDB
(
step
);
char
buf
[
1024
];
char
buf
[
1024
];
sprintf
(
buf
,
"%s_EVENT"
,
table
->
getName
());
sprintf
(
buf
,
"%s_EVENT"
,
table
->
getName
());
NdbEventOperation
*
pOp
,
*
pCreate
=
0
;
NdbEventOperation
*
pOp
,
*
pCreate
=
0
;
pCreate
=
pOp
=
GETNDB
(
step
)
->
createEventOperation
(
buf
);
pCreate
=
pOp
=
ndb
->
createEventOperation
(
buf
);
if
(
pOp
==
NULL
)
{
if
(
pOp
==
NULL
)
{
g_err
<<
"Event operation creation failed on %s"
<<
buf
<<
endl
;
g_err
<<
"Event operation creation failed on %s"
<<
buf
<<
endl
;
return
NDBT_FAILED
;
return
NDBT_FAILED
;
...
@@ -870,7 +871,6 @@ int runEventListenerUntilStopped(NDBT_Context* ctx, NDBT_Step* step)
...
@@ -870,7 +871,6 @@ int runEventListenerUntilStopped(NDBT_Context* ctx, NDBT_Step* step)
goto
end
;
goto
end
;
}
}
Ndb
*
ndb
=
GETNDB
(
step
);
while
(
!
ctx
->
isTestStopped
())
while
(
!
ctx
->
isTestStopped
())
{
{
Uint64
curr_gci
=
0
;
Uint64
curr_gci
=
0
;
...
@@ -887,10 +887,10 @@ int runEventListenerUntilStopped(NDBT_Context* ctx, NDBT_Step* step)
...
@@ -887,10 +887,10 @@ int runEventListenerUntilStopped(NDBT_Context* ctx, NDBT_Step* step)
end:
end:
if
(
pCreate
)
if
(
pCreate
)
{
{
if
(
GETNDB
(
step
)
->
dropEventOperation
(
pCreate
))
{
if
(
ndb
->
dropEventOperation
(
pCreate
))
{
g_err
<<
"dropEventOperation execution failed "
g_err
<<
"dropEventOperation execution failed "
<<
GETNDB
(
step
)
->
getNdbError
().
code
<<
" "
<<
ndb
->
getNdbError
().
code
<<
" "
<<
GETNDB
(
step
)
->
getNdbError
().
message
<<
endl
;
<<
ndb
->
getNdbError
().
message
<<
endl
;
result
=
NDBT_FAILED
;
result
=
NDBT_FAILED
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment