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
4b00336e
Commit
4b00336e
authored
Jun 20, 2006
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: fil_space_truncate_start(): Fix an incorrect assertion,
disable unless #ifdef UNIV_LOG_ARCHIVE.
parent
83a96d34
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
fil/fil0fil.c
fil/fil0fil.c
+3
-1
include/fil0fil.h
include/fil0fil.h
+2
-0
No files found.
fil/fil0fil.c
View file @
4b00336e
...
...
@@ -980,6 +980,7 @@ fil_node_free(
mem_free
(
node
);
}
#ifdef UNIV_LOG_ARCHIVE
/********************************************************************
Drops files from the start of a file space, so that its size is cut by
the amount given. */
...
...
@@ -1005,7 +1006,7 @@ fil_space_truncate_start(
while
(
trunc_len
>
0
)
{
node
=
UT_LIST_GET_FIRST
(
space
->
chain
);
ut_a
(
node
->
size
*
UNIV_PAGE_SIZE
>
=
trunc_len
);
ut_a
(
node
->
size
*
UNIV_PAGE_SIZE
<
=
trunc_len
);
trunc_len
-=
node
->
size
*
UNIV_PAGE_SIZE
;
...
...
@@ -1014,6 +1015,7 @@ fil_space_truncate_start(
mutex_exit
(
&
(
system
->
mutex
));
}
#endif
/* UNIV_LOG_ARCHIVE */
/***********************************************************************
Creates a space memory object and puts it to the tablespace memory cache. If
...
...
include/fil0fil.h
View file @
4b00336e
...
...
@@ -178,6 +178,7 @@ fil_node_create(
ulint
id
,
/* in: space id where to append */
ibool
is_raw
);
/* in: TRUE if a raw device or
a raw disk partition */
#ifdef UNIV_LOG_ARCHIVE
/********************************************************************
Drops files from the start of a file space, so that its size is cut by
the amount given. */
...
...
@@ -189,6 +190,7 @@ fil_space_truncate_start(
ulint
trunc_len
);
/* in: truncate by this much; it is an error
if this does not equal to the combined size of
some initial files in the space */
#endif
/* UNIV_LOG_ARCHIVE */
/***********************************************************************
Creates a space memory object and puts it to the 'fil system' hash table. If
there is an error, prints an error message to the .err log. */
...
...
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