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
c441a3dc
Commit
c441a3dc
authored
Apr 20, 2007
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Construction does not work on hpux aCC, so some refactoring
parent
20b25f6a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
15 deletions
+13
-15
ndb/include/ndbapi/Ndb.hpp
ndb/include/ndbapi/Ndb.hpp
+1
-12
ndb/src/ndbapi/NdbImpl.hpp
ndb/src/ndbapi/NdbImpl.hpp
+12
-3
No files found.
ndb/include/ndbapi/Ndb.hpp
View file @
c441a3dc
...
...
@@ -1051,18 +1051,7 @@ class Ndb
friend
class
NdbDictionaryImpl
;
friend
class
NdbDictInterface
;
friend
class
NdbBlob
;
friend
class
Ndb_free_list_t
<
NdbRecAttr
>
;
friend
class
Ndb_free_list_t
<
NdbApiSignal
>
;
friend
class
Ndb_free_list_t
<
NdbLabel
>
;
friend
class
Ndb_free_list_t
<
NdbBranch
>
;
friend
class
Ndb_free_list_t
<
NdbSubroutine
>
;
friend
class
Ndb_free_list_t
<
NdbCall
>
;
friend
class
Ndb_free_list_t
<
NdbBlob
>
;
friend
class
Ndb_free_list_t
<
NdbReceiver
>
;
friend
class
Ndb_free_list_t
<
NdbIndexScanOperation
>
;
friend
class
Ndb_free_list_t
<
NdbOperation
>
;
friend
class
Ndb_free_list_t
<
NdbIndexOperation
>
;
friend
class
Ndb_free_list_t
<
NdbTransaction
>
;
friend
class
NdbImpl
;
#endif
public:
...
...
ndb/src/ndbapi/NdbImpl.hpp
View file @
c441a3dc
...
...
@@ -89,6 +89,15 @@ public:
return
0
;
}
/*
We need this friend accessor function to work around a HP compiler problem,
where template class friends are not working.
*/
static
inline
void
setNdbError
(
Ndb
&
ndb
,
int
code
){
ndb
.
theError
.
code
=
code
;
return
;
}
/**
* NOTE free lists must be _after_ theNdbObjectIdMap take
* assure that destructors are run in correct order
...
...
@@ -208,7 +217,7 @@ Ndb_free_list_t<T>::fill(Ndb* ndb, Uint32 cnt)
m_free_list
=
new
T
(
ndb
);
if
(
m_free_list
==
0
)
{
ndb
->
theError
.
code
=
4000
;
NdbImpl
::
setNdbError
(
*
ndb
,
4000
)
;
assert
(
false
);
return
-
1
;
}
...
...
@@ -218,7 +227,7 @@ Ndb_free_list_t<T>::fill(Ndb* ndb, Uint32 cnt)
T
*
obj
=
new
T
(
ndb
);
if
(
obj
==
0
)
{
ndb
->
theError
.
code
=
4000
;
NdbImpl
::
setNdbError
(
*
ndb
,
4000
)
;
assert
(
false
);
return
-
1
;
}
...
...
@@ -250,7 +259,7 @@ Ndb_free_list_t<T>::seize(Ndb* ndb)
}
else
{
ndb
->
theError
.
code
=
4000
;
NdbImpl
::
setNdbError
(
*
ndb
,
4000
)
;
assert
(
false
);
}
return
tmp
;
...
...
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