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
4ed0b1c2
Commit
4ed0b1c2
authored
Sep 26, 2004
by
brian@brian-akers-computer.local
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Two cleanups for IRIX build.
parent
afd6af0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sql/examples/ha_archive.cc
sql/examples/ha_archive.cc
+3
-3
No files found.
sql/examples/ha_archive.cc
View file @
4ed0b1c2
...
...
@@ -330,7 +330,6 @@ int ha_archive::create(const char *name, TABLE *table_arg,
*/
int
ha_archive
::
write_row
(
byte
*
buf
)
{
char
*
pos
;
z_off_t
written
;
DBUG_ENTER
(
"ha_archive::write_row"
);
...
...
@@ -415,6 +414,7 @@ int ha_archive::get_row(byte *buf)
int
read
;
// Bytes read, gzread() returns int
char
*
last
;
size_t
total_blob_length
=
0
;
Field_blob
**
field
;
DBUG_ENTER
(
"ha_archive::get_row"
);
read
=
gzread
(
archive
,
buf
,
table
->
reclength
);
...
...
@@ -428,7 +428,7 @@ int ha_archive::get_row(byte *buf)
DBUG_RETURN
(
HA_ERR_CRASHED_ON_USAGE
);
/* Calculate blob length, we use this for our buffer */
for
(
Field_blob
**
field
=
table
->
blob_field
;
*
field
;
field
++
)
for
(
field
=
table
->
blob_field
;
*
field
;
field
++
)
total_blob_length
+=
(
*
field
)
->
get_length
();
/* Adjust our row buffer if we need be */
...
...
@@ -436,7 +436,7 @@ int ha_archive::get_row(byte *buf)
last
=
(
char
*
)
buffer
.
ptr
();
/* Loop through our blobs and read them */
for
(
Field_blob
**
field
=
table
->
blob_field
;
*
field
;
field
++
)
for
(
field
=
table
->
blob_field
;
*
field
;
field
++
)
{
size_t
size
=
(
*
field
)
->
get_length
();
read
=
gzread
(
archive
,
last
,
size
);
...
...
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