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
07cf3d76
Commit
07cf3d76
authored
Jun 07, 2002
by
ram@gw.udmsearch.izhnet.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests fixes
parent
59537790
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
heap/hp_test1.c
heap/hp_test1.c
+3
-1
heap/hp_test2.c
heap/hp_test2.c
+7
-2
No files found.
heap/hp_test1.c
View file @
07cf3d76
...
...
@@ -44,11 +44,13 @@ int main(int argc, char **argv)
keyinfo
[
0
].
keysegs
=
1
;
keyinfo
[
0
].
seg
=
keyseg
;
keyinfo
[
0
].
algorithm
=
HA_KEY_ALG_HASH
;
keyinfo
[
0
].
seg
[
0
].
type
=
HA_KEYTYPE_BINARY
;
keyinfo
[
0
].
seg
[
0
].
start
=
1
;
keyinfo
[
0
].
seg
[
0
].
length
=
6
;
keyinfo
[
0
].
seg
[
0
].
charset
=
default_charset_info
;
keyinfo
[
0
].
flag
=
HA_NOSAME
;
deleted
=
0
;
bzero
((
gptr
)
flags
,
sizeof
(
flags
));
...
...
heap/hp_test2.c
View file @
07cf3d76
...
...
@@ -77,6 +77,7 @@ int main(int argc, char *argv[])
keyinfo
[
0
].
seg
=
keyseg
;
keyinfo
[
0
].
keysegs
=
1
;
keyinfo
[
0
].
flag
=
0
;
keyinfo
[
0
].
algorithm
=
HA_KEY_ALG_HASH
;
keyinfo
[
0
].
seg
[
0
].
type
=
HA_KEYTYPE_BINARY
;
keyinfo
[
0
].
seg
[
0
].
start
=
0
;
keyinfo
[
0
].
seg
[
0
].
length
=
6
;
...
...
@@ -85,6 +86,7 @@ int main(int argc, char *argv[])
keyinfo
[
1
].
seg
=
keyseg
+
1
;
keyinfo
[
1
].
keysegs
=
2
;
keyinfo
[
1
].
flag
=
0
;
keyinfo
[
1
].
algorithm
=
HA_KEY_ALG_HASH
;
keyinfo
[
1
].
seg
[
0
].
type
=
HA_KEYTYPE_BINARY
;
keyinfo
[
1
].
seg
[
0
].
start
=
7
;
keyinfo
[
1
].
seg
[
0
].
length
=
6
;
...
...
@@ -98,14 +100,16 @@ int main(int argc, char *argv[])
keyinfo
[
2
].
seg
=
keyseg
+
3
;
keyinfo
[
2
].
keysegs
=
1
;
keyinfo
[
2
].
flag
=
HA_NOSAME
;
keyinfo
[
2
].
algorithm
=
HA_KEY_ALG_HASH
;
keyinfo
[
2
].
seg
[
0
].
type
=
HA_KEYTYPE_BINARY
;
keyinfo
[
2
].
seg
[
0
].
start
=
12
;
keyinfo
[
2
].
seg
[
0
].
length
=
8
;
keyinfo
[
2
].
seg
[
0
].
null_bit
=
0
;
keyinfo
[
2
].
seg
[
0
].
charset
=
default_charset_info
;
keyinfo
[
3
].
seg
=
keyseg
+
4
;
keyinfo
[
3
].
keysegs
=
1
;
keyinfo
[
3
].
flag
=
HA_NOSAME
;
keyinfo
[
3
].
seg
=
keyseg
+
4
;
keyinfo
[
3
].
algorithm
=
HA_KEY_ALG_HASH
;
keyinfo
[
3
].
seg
[
0
].
type
=
HA_KEYTYPE_BINARY
;
keyinfo
[
3
].
seg
[
0
].
start
=
37
;
keyinfo
[
3
].
seg
[
0
].
length
=
1
;
...
...
@@ -553,7 +557,8 @@ int main(int argc, char *argv[])
heap_close
(
file2
);
printf
(
"- Creating output heap-file 2
\n
"
);
if
(
!
(
file2
=
heap_open
(
filename2
,
2
)))
if
(
heap_create
(
filename2
,
1
,
keyinfo
,
reclength
,
0L
,
0L
)
||
!
(
file2
=
heap_open
(
filename2
,
2
)))
goto
err
;
printf
(
"- Copying and removing records
\n
"
);
...
...
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