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
22aa44a6
Commit
22aa44a6
authored
Jan 10, 2005
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed Ndb::startTransaction() interface or partition key/hint
parent
99f07f83
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
ndb/include/ndbapi/Ndb.hpp
ndb/include/ndbapi/Ndb.hpp
+6
-5
ndb/src/ndbapi/Ndb.cpp
ndb/src/ndbapi/Ndb.cpp
+3
-2
No files found.
ndb/include/ndbapi/Ndb.hpp
View file @
22aa44a6
...
...
@@ -1236,15 +1236,16 @@ public:
* The transaction must be closed independent of its outcome, i.e.
* even if there is an error.
*
* @param prio Not implemented
* @param keyData Pointer to partition key to be used for deciding
* @param table Pointer to table object used for deciding
* which node to run the Transaction Coordinator on
* @param keyData Pointer to partition key corresponding to
* <var>table</var>
* @param keyLen Length of partition key expressed in bytes
*
* @return NdbTransaction object, or NULL on failure.
*/
NdbTransaction
*
startTransaction
(
Uint32
prio
=
0
,
const
char
*
keyData
=
0
,
NdbTransaction
*
startTransaction
(
const
NdbDictionary
::
Table
*
table
=
0
,
const
char
*
keyData
=
0
,
Uint32
keyLen
=
0
);
/**
...
...
ndb/src/ndbapi/Ndb.cpp
View file @
22aa44a6
...
...
@@ -299,7 +299,8 @@ Return Value: Returns a pointer to a connection object.
Remark: Start transaction. Synchronous.
*****************************************************************************/
NdbTransaction
*
Ndb
::
startTransaction
(
Uint32
aPriority
,
const
char
*
keyData
,
Uint32
keyLen
)
Ndb
::
startTransaction
(
const
NdbDictionary
::
Table
*
table
,
const
char
*
keyData
,
Uint32
keyLen
)
{
DBUG_ENTER
(
"Ndb::startTransaction"
);
...
...
@@ -319,7 +320,7 @@ Ndb::startTransaction(Uint32 aPriority, const char * keyData, Uint32 keyLen)
nodeId
=
0
;
}
//if
{
NdbTransaction
*
trans
=
startTransactionLocal
(
aPriority
,
nodeId
);
NdbTransaction
*
trans
=
startTransactionLocal
(
0
,
nodeId
);
DBUG_PRINT
(
"exit"
,(
"start trans: 0x%x transid: 0x%llx"
,
trans
,
trans
?
trans
->
getTransactionId
()
:
0
));
DBUG_RETURN
(
trans
);
...
...
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