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
629ee062
Commit
629ee062
authored
Aug 25, 2007
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
try multiple brt fanout's
git-svn-id:
file:///svn/tokudb@197
c7de825b-a66e-492c-adef-691d508d4ae1
parent
c5911c1f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
newbrt/Makefile
newbrt/Makefile
+11
-0
newbrt/brt-internal.h
newbrt/brt-internal.h
+4
-1
No files found.
newbrt/Makefile
View file @
629ee062
...
@@ -15,6 +15,10 @@ endif
...
@@ -15,6 +15,10 @@ endif
CFLAGS
=
-Wall
-W
$(OPTFLAGS)
-g
$(GCOV_FLAGS)
$(PROF_FLAGS)
-Werror
$(FPICFLAGS)
CFLAGS
=
-Wall
-W
$(OPTFLAGS)
-g
$(GCOV_FLAGS)
$(PROF_FLAGS)
-Werror
$(FPICFLAGS)
LDFLAGS
=
$(OPTFLAGS)
-g
$(GCOV_FLAGS)
$(PROF_FLAGS)
LDFLAGS
=
$(OPTFLAGS)
-g
$(GCOV_FLAGS)
$(PROF_FLAGS)
ifdef
BRT_FANOUT
CPPFLAGS
+=
-DBRT_FANOUT
=
$(BRT_FANOUT)
endif
# When debugging, try: valgrind --show-reachable=yes --leak-check=full ./brt-test
# When debugging, try: valgrind --show-reachable=yes --leak-check=full ./brt-test
...
@@ -44,6 +48,13 @@ check: bins
...
@@ -44,6 +48,13 @@ check: bins
$(DTOOL)
./hashtest
$(DTOOL)
./hashtest
# ./mdict-test
# ./mdict-test
check-fanout
:
let
BRT_FANOUT
=
4
;
\
while
[
$$
BRT_FANOUT
-le
16
]
;
do
\
make clean
;
make check
BRT_FANOUT
=
$$
BRT_FANOUT
;
\
let
BRT_FANOUT
=
BRT_FANOUT+1
;
\
done
# pma: PROF_FLAGS=-fprofile-arcs -ftest-coverage
# pma: PROF_FLAGS=-fprofile-arcs -ftest-coverage
key.o
:
brttypes.h key.h
key.o
:
brttypes.h key.h
pma-test.o
:
pma-internal.h pma.h yerror.h memory.h ../include/ydb-constants.h
pma-test.o
:
pma-internal.h pma.h yerror.h memory.h ../include/ydb-constants.h
...
...
newbrt/brt-internal.h
View file @
629ee062
...
@@ -6,7 +6,10 @@
...
@@ -6,7 +6,10 @@
typedef
long
long
diskoff
;
/* Offset in a disk. -1 is the NULL pointer. */
typedef
long
long
diskoff
;
/* Offset in a disk. -1 is the NULL pointer. */
enum
{
TREE_FANOUT
=
16
};
//, NODESIZE=1<<20 };
#ifndef BRT_FANOUT
#define BRT_FANOUT 16
#endif
enum
{
TREE_FANOUT
=
BRT_FANOUT
};
//, NODESIZE=1<<20 };
enum
{
KEY_VALUE_OVERHEAD
=
8
};
/* Must store the two lengths. */
enum
{
KEY_VALUE_OVERHEAD
=
8
};
/* Must store the two lengths. */
struct
nodeheader_in_file
{
struct
nodeheader_in_file
{
int
n_in_buffer
;
int
n_in_buffer
;
...
...
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