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
76027034
Commit
76027034
authored
Sep 24, 2004
by
tomas@poseidon.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug, releaseTableObject called twice
bug, whole bucket removed if delete first element in bucket
parent
4b2aa105
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
9 deletions
+4
-9
ndb/src/kernel/blocks/dbdict/Dbdict.cpp
ndb/src/kernel/blocks/dbdict/Dbdict.cpp
+0
-2
ndb/src/ndbapi/NdbLinHash.hpp
ndb/src/ndbapi/NdbLinHash.hpp
+4
-7
No files found.
ndb/src/kernel/blocks/dbdict/Dbdict.cpp
View file @
76027034
...
...
@@ -2868,7 +2868,6 @@ Dbdict::execALTER_TABLE_REQ(Signal* signal)
jam
();
c_opCreateTable
.
release
(
alterTabPtr
);
parseRecord
.
tablePtr
.
p
->
tabState
=
TableRecord
::
NOT_DEFINED
;
releaseTableObject
(
parseRecord
.
tablePtr
.
i
,
false
);
alterTableRef
(
signal
,
req
,
(
AlterTableRef
::
ErrorCode
)
parseRecord
.
errorCode
,
aParseRecord
);
...
...
@@ -3054,7 +3053,6 @@ Dbdict::execALTER_TAB_REQ(Signal * signal)
jam
();
c_opCreateTable
.
release
(
alterTabPtr
);
parseRecord
.
tablePtr
.
p
->
tabState
=
TableRecord
::
NOT_DEFINED
;
releaseTableObject
(
parseRecord
.
tablePtr
.
i
,
false
);
alterTabRef
(
signal
,
req
,
(
AlterTableRef
::
ErrorCode
)
parseRecord
.
errorCode
,
aParseRecord
);
...
...
ndb/src/ndbapi/NdbLinHash.hpp
View file @
76027034
...
...
@@ -287,17 +287,14 @@ NdbLinHash<C>::deleteKey ( const char* str, Uint32 len){
NdbElement_t
<
C
>
**
chainp
=
&
directory
[
dir
]
->
elements
[
seg
];
for
(
NdbElement_t
<
C
>
*
chain
=
*
chainp
;
chain
!=
0
;
chain
=
chain
->
next
){
if
(
chain
->
len
==
len
&&
!
memcmp
(
chain
->
str
,
str
,
len
)){
C
*
data
=
chain
->
theData
;
if
(
oldChain
==
0
)
{
C
*
data
=
chain
->
theData
;
delete
chain
;
*
chainp
=
0
;
return
data
;
*
chainp
=
chain
->
next
;
}
else
{
C
*
data
=
chain
->
theData
;
oldChain
->
next
=
chain
->
next
;
delete
chain
;
return
data
;
}
delete
chain
;
return
data
;
}
else
{
oldChain
=
chain
;
}
...
...
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