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
0a1e0ddb
Commit
0a1e0ddb
authored
Apr 14, 2010
by
Yoni Fogel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Windows port minor changes
git-svn-id:
file:///svn/toku/tokudb@19227
c7de825b-a66e-492c-adef-691d508d4ae1
parent
cb428d20
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
4 deletions
+10
-4
newbrt/brtdump.c
newbrt/brtdump.c
+1
-1
newbrt/brtloader.c
newbrt/brtloader.c
+1
-1
newbrt/log-internal.h
newbrt/log-internal.h
+1
-1
newbrt/sub_block.c
newbrt/sub_block.c
+1
-1
src/tests/Makefile
src/tests/Makefile
+6
-0
No files found.
newbrt/brtdump.c
View file @
0a1e0ddb
...
...
@@ -281,7 +281,7 @@ dump_block(int f, BLOCKNUM blocknum, struct brt_header *h) {
unsigned
char
*
vp
=
toku_malloc
(
size
);
u_int64_t
r
=
pread
(
f
,
vp
,
size
,
offset
);
if
(
r
==
(
u_int64_t
)
size
)
{
printf
(
"%.8s layout_version=%u %u
\n
"
,
vp
,
get_unaligned_uint32
(
vp
+
8
),
get_unaligned_uint32
(
vp
+
12
));
printf
(
"%.8s layout_version=%u %u
\n
"
,
(
char
*
)
vp
,
get_unaligned_uint32
(
vp
+
8
),
get_unaligned_uint32
(
vp
+
12
));
verify_block
(
vp
,
size
);
}
toku_free
(
vp
);
...
...
newbrt/brtloader.c
View file @
0a1e0ddb
...
...
@@ -1226,7 +1226,7 @@ static void finish_leafnode (struct dbout *out, struct leaf_buf *lbuf, int progr
int
size
=
header_len
+
compressed_len
;
if
(
0
)
{
fprintf
(
stderr
,
"uncompressed buf size=%d (amount of data compressed)
\n
"
,
uncompressed_len
);
fprintf
(
stderr
,
"compressed buf size=%
u
, off=%lld
\n
"
,
compressed_len
,
off_of_leaf
);
fprintf
(
stderr
,
"compressed buf size=%
d
, off=%lld
\n
"
,
compressed_len
,
off_of_leaf
);
fprintf
(
stderr
,
"compressed bytes are:"
);
//for (int i=0; i<compressed_len; i++) {
// unsigned char c = compressed_buf[28+i];
...
...
newbrt/log-internal.h
View file @
0a1e0ddb
...
...
@@ -177,7 +177,7 @@ static inline int toku_logsizeof_TXNID (TXNID txnid __attribute__((__unused__)))
}
static
inline
int
toku_logsizeof_FILENUMS
(
FILENUMS
fs
)
{
static
const
FILENUM
f
;
//fs could have .num==0 and then we cannot dereference
static
const
FILENUM
f
=
{
0
}
;
//fs could have .num==0 and then we cannot dereference
return
4
+
fs
.
num
*
toku_logsizeof_FILENUM
(
f
);
}
...
...
newbrt/sub_block.c
View file @
0a1e0ddb
#include <toku_portability.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <zlib.h>
#include "toku_portability.h"
#include "toku_assert.h"
#include "x1764.h"
#include "sub_block.h"
...
...
src/tests/Makefile
View file @
0a1e0ddb
...
...
@@ -31,8 +31,14 @@ $(notdir $(TLIBTDB)): $(TLIBTDB)
SRCS
=
$(
sort
$(
wildcard
*
.c
))
RECOVER_SRCS
=
$(
wildcard
recover-
*
.c
)
#Tests that don't compile in windows. SHould
WINDOWS_NOT_PORTED_TESTS
=
\
diskfull
\
#
\
ends prev line
#Tests that are irrelevant in windows.
WINDOWS_DONTRUN_TESTS
=
\
$(WINDOWS_NOT_PORTED_TESTS)
\
helgrind1
\
helgrind2
\
helgrind3
\
...
...
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