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
4d4b11db
Commit
4d4b11db
authored
Jan 10, 2005
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge joreland@bk-internal.mysql.com:/home/bk/mysql-5.0-ndb
into mysql.com:/home/jonas/src/mysql-5.0-ndb
parents
7e04795f
ad2550ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
ndb/include/ndbapi/Ndb.hpp
ndb/include/ndbapi/Ndb.hpp
+2
-1
ndb/test/ndbapi/testNdbApi.cpp
ndb/test/ndbapi/testNdbApi.cpp
+4
-1
No files found.
ndb/include/ndbapi/Ndb.hpp
View file @
4d4b11db
...
...
@@ -583,7 +583,8 @@
As noted previously, the application programmer can provide hints to the NDB API as to
which transaction co-ordinator it should use. This is done by
providing a <em>partition key</em> (usually the primary key).
providing a <em>table</em> and <em>partition key</em>
(usually the primary key).
By using the primary key as the partition key,
the transaction will be placed on the node where the primary replica
of that record resides.
...
...
ndb/test/ndbapi/testNdbApi.cpp
View file @
4d4b11db
...
...
@@ -119,6 +119,9 @@ int runTestMaxTransaction(NDBT_Context* ctx, NDBT_Step* step){
return
NDBT_FAILED
;
}
const
NdbDictionary
::
Table
*
pTab
=
ctx
->
getTab
();
if
(
pTab
==
0
)
abort
();
while
(
l
<
loops
&&
result
==
NDBT_OK
){
int
errors
=
0
;
int
maxErrors
=
5
;
...
...
@@ -137,7 +140,7 @@ int runTestMaxTransaction(NDBT_Context* ctx, NDBT_Step* step){
pCon
=
pNdb
->
startTransaction
();
break
;
case
1
:
pCon
=
pNdb
->
startTransaction
(
2
,
pCon
=
pNdb
->
startTransaction
(
pTab
,
"DATA"
,
4
);
break
;
...
...
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