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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
ea794df4
Commit
ea794df4
authored
Jul 03, 2006
by
pekka@clam.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - bug#20751 : report also composite op in merge
parent
d5bb5130
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
5 deletions
+20
-5
storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp
storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp
+10
-3
storage/ndb/test/ndbapi/test_event_merge.cpp
storage/ndb/test/ndbapi/test_event_merge.cpp
+10
-2
No files found.
storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp
View file @
ea794df4
...
...
@@ -1809,12 +1809,19 @@ NdbEventBuffer::insertDataL(NdbEventOperationImpl *op,
}
// merge is on so we do not report blob part events
if
(
!
is_blob_event
)
{
// report actual operation
, not
composite
// report actual operation
and the
composite
// there is no way to "fix" the flags for a composite op
// since the flags represent multiple ops on multiple PKs
// XXX fix by doing merge at end of epoch (extra mem cost)
{
EventBufData_list
::
Gci_op
g
=
{
op
,
(
1
<<
sdata
->
operation
)
};
bucket
->
m_data
.
add_gci_op
(
g
);
}
{
EventBufData_list
::
Gci_op
g
=
{
op
,
(
1
<<
data
->
sdata
->
operation
)
};
bucket
->
m_data
.
add_gci_op
(
g
);
}
}
}
DBUG_RETURN_EVENT
(
0
);
}
...
...
storage/ndb/test/ndbapi/test_event_merge.cpp
View file @
ea794df4
...
...
@@ -1535,11 +1535,19 @@ selecttables()
uint
i
;
for
(
i
=
0
;
i
<
maxrun
();
i
++
)
run
(
i
).
skip
=
false
;
if
(
g_opts
.
opstring
!=
0
)
{
ll1
(
"using all tables due to fixed ops"
);
return
;
}
for
(
i
=
0
;
i
+
1
<
maxrun
();
i
++
)
run
(
urandom
(
maxrun
())).
skip
=
true
;
uint
cnt
=
0
;
for
(
i
=
0
;
i
<
maxrun
();
i
++
)
cnt
+=
!
run
(
i
).
skip
;
for
(
i
=
0
;
i
<
maxrun
();
i
++
)
{
if
(
!
run
(
i
).
skip
)
{
ll2
(
"use table "
<<
run
(
i
).
tabname
);
cnt
++
;
}
}
ll1
(
"use "
<<
cnt
<<
"/"
<<
maxrun
()
<<
" tables in this loop"
);
}
...
...
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