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
de2c4f0a
Commit
de2c4f0a
authored
Apr 29, 2009
by
Martin Hansson
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
7d244411
33723996
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
mysys/mf_keycache.c
mysys/mf_keycache.c
+4
-2
mysys/safemalloc.c
mysys/safemalloc.c
+1
-1
storage/ibmdb2i/ha_ibmdb2i.cc
storage/ibmdb2i/ha_ibmdb2i.cc
+6
-1
No files found.
mysys/mf_keycache.c
View file @
de2c4f0a
...
@@ -2044,13 +2044,15 @@ static BLOCK_LINK *find_key_block(KEY_CACHE *keycache,
...
@@ -2044,13 +2044,15 @@ static BLOCK_LINK *find_key_block(KEY_CACHE *keycache,
}
}
else
else
{
{
size_t
block_mem_offset
;
/* There are some never used blocks, take first of them */
/* There are some never used blocks, take first of them */
DBUG_ASSERT
(
keycache
->
blocks_used
<
DBUG_ASSERT
(
keycache
->
blocks_used
<
(
ulong
)
keycache
->
disk_blocks
);
(
ulong
)
keycache
->
disk_blocks
);
block
=
&
keycache
->
block_root
[
keycache
->
blocks_used
];
block
=
&
keycache
->
block_root
[
keycache
->
blocks_used
];
block_mem_offset
=
((
size_t
)
keycache
->
blocks_used
)
*
keycache
->
key_cache_block_size
;
block
->
buffer
=
ADD_TO_PTR
(
keycache
->
block_mem
,
block
->
buffer
=
ADD_TO_PTR
(
keycache
->
block_mem
,
((
ulong
)
keycache
->
blocks_used
*
block_mem_offset
,
keycache
->
key_cache_block_size
),
uchar
*
);
uchar
*
);
keycache
->
blocks_used
++
;
keycache
->
blocks_used
++
;
DBUG_ASSERT
(
!
block
->
next_used
);
DBUG_ASSERT
(
!
block
->
next_used
);
...
...
mysys/safemalloc.c
View file @
de2c4f0a
...
@@ -174,7 +174,7 @@ void *_mymalloc(size_t size, const char *filename, uint lineno, myf MyFlags)
...
@@ -174,7 +174,7 @@ void *_mymalloc(size_t size, const char *filename, uint lineno, myf MyFlags)
data
[
size
+
3
]
=
MAGICEND3
;
data
[
size
+
3
]
=
MAGICEND3
;
irem
->
filename
=
(
char
*
)
filename
;
irem
->
filename
=
(
char
*
)
filename
;
irem
->
linenum
=
lineno
;
irem
->
linenum
=
lineno
;
irem
->
datasize
=
(
uint32
)
size
;
irem
->
datasize
=
size
;
irem
->
prev
=
NULL
;
irem
->
prev
=
NULL
;
/* Add this remember structure to the linked list */
/* Add this remember structure to the linked list */
...
...
storage/ibmdb2i/ha_ibmdb2i.cc
View file @
de2c4f0a
...
@@ -898,6 +898,8 @@ int ha_ibmdb2i::index_init(uint idx, bool sorted)
...
@@ -898,6 +898,8 @@ int ha_ibmdb2i::index_init(uint idx, bool sorted)
releaseIndexFile
(
idx
);
releaseIndexFile
(
idx
);
}
}
rrnAssocHandle
=
0
;
DBUG_RETURN
(
rc
);
DBUG_RETURN
(
rc
);
}
}
...
@@ -1154,6 +1156,8 @@ int ha_ibmdb2i::rnd_init(bool scan)
...
@@ -1154,6 +1156,8 @@ int ha_ibmdb2i::rnd_init(bool scan)
releaseDataFile
();
releaseDataFile
();
}
}
rrnAssocHandle
=
0
;
DBUG_RETURN
(
0
);
// MySQL sometimes does not check the return code, causing
DBUG_RETURN
(
0
);
// MySQL sometimes does not check the return code, causing
// an assert in ha_rnd_end later on if we return a non-zero
// an assert in ha_rnd_end later on if we return a non-zero
// value here.
// value here.
...
@@ -1251,7 +1255,8 @@ int ha_ibmdb2i::rnd_pos(uchar * buf, uchar *pos)
...
@@ -1251,7 +1255,8 @@ int ha_ibmdb2i::rnd_pos(uchar * buf, uchar *pos)
int
rc
=
0
;
int
rc
=
0
;
if
(
activeHandle
!=
rrnAssocHandle
)
if
(
rrnAssocHandle
&&
(
activeHandle
!=
rrnAssocHandle
))
{
{
if
(
activeHandle
)
releaseActiveHandle
();
if
(
activeHandle
)
releaseActiveHandle
();
rc
=
useFileByHandle
(
QMY_UPDATABLE
,
rrnAssocHandle
);
rc
=
useFileByHandle
(
QMY_UPDATABLE
,
rrnAssocHandle
);
...
...
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