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
bb99881c
Commit
bb99881c
authored
Oct 01, 2007
by
Bradley C. Kuszmaul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some errors in the transaction code
git-svn-id:
file:///svn/tokudb@375
c7de825b-a66e-492c-adef-691d508d4ae1
parent
1dc6c023
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
src/ydb.c
src/ydb.c
+2
-4
No files found.
src/ydb.c
View file @
bb99881c
...
@@ -99,7 +99,7 @@ struct __toku_db_env_internal {
...
@@ -99,7 +99,7 @@ struct __toku_db_env_internal {
int
__toku_db_env_open
(
DB_ENV
*
env
,
const
char
*
home
,
u_int32_t
flags
,
int
mode
)
{
int
__toku_db_env_open
(
DB_ENV
*
env
,
const
char
*
home
,
u_int32_t
flags
,
int
mode
)
{
int
r
;
int
r
;
notef
(
"(%p,
\"
%s
\"
, 0x%x, 0%o)
\n
"
,
env
,
home
,
flags
,
mode
);
notef
(
"(%p,
\"
%s
\"
, 0x%x, 0%o)
\n
"
,
env
,
home
,
flags
,
mode
);
env
->
i
->
dir
=
strdup
(
home
);
env
->
i
->
dir
=
strdup
(
home
);
assert
(
env
->
i
->
dir
!=
0
);
env
->
i
->
open_flags
=
flags
;
env
->
i
->
open_flags
=
flags
;
env
->
i
->
open_mode
=
mode
;
env
->
i
->
open_mode
=
mode
;
...
@@ -111,8 +111,6 @@ int __toku_db_env_open (DB_ENV *env, const char *home, u_int32_t flags, int mod
...
@@ -111,8 +111,6 @@ int __toku_db_env_open (DB_ENV *env, const char *home, u_int32_t flags, int mod
if
(
flags
&
(
DB_INIT_TXN
|
DB_INIT_LOG
))
{
if
(
flags
&
(
DB_INIT_TXN
|
DB_INIT_LOG
))
{
r
=
tokulogger_create_and_open_logger
(
env
->
i
->
dir
,
&
env
->
i
->
logger
);
r
=
tokulogger_create_and_open_logger
(
env
->
i
->
dir
,
&
env
->
i
->
logger
);
}
else
{
env
->
i
->
dir
=
0
;
}
}
return
0
;
return
0
;
...
@@ -427,7 +425,7 @@ int __toku_db_open (DB *db, DB_TXN *txn, const char *fname, const char *dbname,
...
@@ -427,7 +425,7 @@ int __toku_db_open (DB *db, DB_TXN *txn, const char *fname, const char *dbname,
}
}
int
__toku_db_put
(
DB
*
db
,
DB_TXN
*
txn
,
DBT
*
key
,
DBT
*
data
,
u_int32_t
flags
)
{
int
__toku_db_put
(
DB
*
db
,
DB_TXN
*
txn
,
DBT
*
key
,
DBT
*
data
,
u_int32_t
flags
)
{
int
r
=
brt_insert
(
db
->
i
->
brt
,
key
,
data
,
db
,
txn
->
i
->
tokutxn
);
int
r
=
brt_insert
(
db
->
i
->
brt
,
key
,
data
,
db
,
txn
?
txn
->
i
->
tokutxn
:
0
);
//printf("%s:%d %d=__toku_db_put(...)\n", __FILE__, __LINE__, r);
//printf("%s:%d %d=__toku_db_put(...)\n", __FILE__, __LINE__, r);
return
r
;
return
r
;
}
}
...
...
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