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
8c4f55a2
Commit
8c4f55a2
authored
Apr 21, 2008
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
32 bit port
git-svn-id:
file:///svn/tokudb@3532
c7de825b-a66e-492c-adef-691d508d4ae1
parent
07125ac2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
newbrt/log.c
newbrt/log.c
+3
-3
No files found.
newbrt/log.c
View file @
8c4f55a2
...
...
@@ -916,7 +916,7 @@ int toku_maybe_spill_rollbacks (TOKUTXN txn) {
toku_free
(
item
);
}
assert
(
txn
->
rollentry_resident_bytecount
==
0
);
assert
(
w
.
ndone
==
bufsize
);
assert
(
(
ssize_t
)
w
.
ndone
==
bufsize
);
txn
->
oldest_logentry
=
txn
->
newest_logentry
=
0
;
if
(
txn
->
rollentry_fd
<
0
)
{
const
char
filenamepart
[]
=
"/__rolltmp.XXXXXX"
;
...
...
@@ -930,7 +930,7 @@ int toku_maybe_spill_rollbacks (TOKUTXN txn) {
}
ssize_t
r
=
write_it
(
txn
->
rollentry_fd
,
buf
,
w
.
ndone
);
if
(
r
<
0
)
return
r
;
assert
(
r
==
w
.
ndone
);
assert
(
r
==
(
ssize_t
)
w
.
ndone
);
txn
->
rollentry_filesize
+=
w
.
ndone
;
toku_free
(
buf
);
}
...
...
@@ -945,7 +945,7 @@ int toku_read_rollback_backwards(int fd, off_t at, struct roll_entry **item, off
assert
(
at
>=
n_bytes
);
unsigned
char
*
buf
=
toku_malloc
(
n_bytes
);
if
(
buf
==
0
)
return
errno
;
if
((
sr
=
pread
(
fd
,
buf
,
n_bytes
,
at
-
n_bytes
))
!=
n_bytes
)
{
assert
(
sr
<
0
);
return
errno
;
}
if
((
sr
=
pread
(
fd
,
buf
,
n_bytes
,
at
-
n_bytes
))
!=
(
ssize_t
)
n_bytes
)
{
assert
(
sr
<
0
);
return
errno
;
}
int
r
=
toku_parse_rollback
(
buf
,
n_bytes
,
item
);
if
(
r
!=
0
)
return
r
;
(
*
new_at
)
-=
n_bytes
;
...
...
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