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
8d5fe7bd
Commit
8d5fe7bd
authored
Nov 14, 2007
by
Bradley C. Kuszmaul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
up
git-svn-id:
file:///svn/tokudb@517
c7de825b-a66e-492c-adef-691d508d4ae1
parent
45eac674
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
464 additions
and
342 deletions
+464
-342
src/Makefile
src/Makefile
+17
-9
src/ydb-internal.h
src/ydb-internal.h
+1
-4
src/ydb.c
src/ydb.c
+446
-329
No files found.
src/Makefile
View file @
8d5fe7bd
# On OSX do:
# make OSX=OSX
CFLAGS
=
-W
-Wall
-Wno-unused
-g
-fPIC
-O2
LIBNAME
=
libdb
OPTFLAGS
=
-O2
CFLAGS
=
-W
-Wall
-Wno-unused
-g
-fPIC
$(OPTFLAGS)
CPPFLAGS
=
-I
../include
-I
../newbrt
CPPFLAGS
+=
-D_FILE_OFFSET_BITS
=
64
-D_LARGEFILE64_SOURCE
...
...
@@ -15,15 +18,20 @@ LIBEXT=so
SHARED
=
-shared
endif
LIBNAME
=
libdb.
$(LIBEXT)
install
:
$(LIBNAME)
cp
$(LIBNAME)
../lib/
install
:
$(LIBNAME).$(LIBEXT) $(LIBNAME).a
cp
$(LIBNAME)
.
$(LIBEXT)
../lib/
cp
$(LIBNAME)
.a ../lib
clean
:
rm
-rf
*
.
$(LIBEXT)
*
.o
rm
-rf
$(LIBNAME)
.
$(LIBEXT)
$(LIBNAME)
.a
*
.o
ydb.o
:
../include/db.h ../newbrt/cachetable.h ../newbrt/brt.h ../newbrt/log.c
DBBINS
=
ydb.o ../newbrt/brt.o ../newbrt/brt-serialize.o ../newbrt/cachetable.o ../newbrt/hashtable.o ../newbrt/header-io.o ../newbrt/key.o ../newbrt/memory.o ../newbrt/pma.o ../newbrt/ybt.o ../newbrt/primes.o ../newbrt/log.o ../newbrt/mempool.o
$(LIBNAME)
:
$(DBBINS)
cc
$(CPPFLAGS)
$(DBBINS)
$(SHARED)
-o
$@
$(CFLAGS)
DBBINS
=
ydb.o ../newbrt/brt.o ../newbrt/brt-serialize.o ../newbrt/brt-verify.o ../newbrt/cachetable.o ../newbrt/hashtable.o ../newbrt/header-io.o ../newbrt/key.o ../newbrt/memory.o ../newbrt/mempool.o ../newbrt/pma.o ../newbrt/ybt.o ../newbrt/primes.o ../newbrt/log.o ../newbrt/fingerprint.o
$(LIBNAME).$(LIBEXT)
:
$(DBBINS)
cc
$(CPPFLAGS)
$(DBBINS)
$(SHARED)
-o
$@
$(CFLAGS)
-lz
$(LIBNAME).a
:
$(DBBINS)
$(AR)
rv
$@
$(DBBINS)
libdb.a(ydb.o)
:
ydb.o
src/ydb-internal.h
View file @
8d5fe7bd
...
...
@@ -13,17 +13,14 @@ struct db_header {
struct
__toku_db_internal
{
int
freed
;
int
(
*
bt_compare
)(
DB
*
,
const
DBT
*
,
const
DBT
*
);
struct
db_header
*
header
;
int
database_number
;
// -1 if it is the single unnamed database. Nonnengative number otherwise.
DB_ENV
*
env
;
char
*
full_fname
;
char
*
database_name
;
//int fd;
u_int32_t
open_flags
;
int
open_mode
;
BRT
brt
;
int
is_db_dup
;
unsigned
long
long
fileid
;
FILENUM
fileid
;
};
#endif
src/ydb.c
View file @
8d5fe7bd
This diff is collapsed.
Click to expand it.
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