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
939ef8e7
Commit
939ef8e7
authored
Nov 20, 2007
by
Yoni Fogel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Swapped toku_strdup for strdup
git-svn-id:
file:///svn/tokudb@686
c7de825b-a66e-492c-adef-691d508d4ae1
parent
6bb927b0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/ydb.c
src/ydb.c
+6
-6
No files found.
src/ydb.c
View file @
939ef8e7
...
...
@@ -239,7 +239,7 @@ int __toku_db_env_open(DB_ENV * env, const char *home, u_int32_t flags, int mode
if
(
env
->
i
->
dir
)
toku_free
(
env
->
i
->
dir
);
env
->
i
->
dir
=
strdup
(
home
);
env
->
i
->
dir
=
toku_
strdup
(
home
);
if
(
env
->
i
->
dir
==
0
)
return
ENOMEM
;
if
(
0
)
{
...
...
@@ -319,7 +319,7 @@ int __toku_db_env_set_data_dir(DB_ENV * env, const char *dir) {
return
EINVAL
;
if
(
env
->
i
->
data_dir
)
toku_free
(
env
->
i
->
data_dir
);
env
->
i
->
data_dir
=
strdup
(
dir
);
env
->
i
->
data_dir
=
toku_
strdup
(
dir
);
return
env
->
i
->
data_dir
?
0
:
ENOMEM
;
}
...
...
@@ -330,7 +330,7 @@ void __toku_db_env_set_errcall(DB_ENV * env, void (*errcall) (const char *, char
void
__toku_db_env_set_errpfx
(
DB_ENV
*
env
,
const
char
*
errpfx
)
{
if
(
env
->
i
->
errpfx
)
toku_free
(
env
->
i
->
errpfx
);
env
->
i
->
errpfx
=
strdup
(
errpfx
?
errpfx
:
""
);
env
->
i
->
errpfx
=
toku_
strdup
(
errpfx
?
errpfx
:
""
);
}
int
__toku_db_env_set_flags
(
DB_ENV
*
env
,
u_int32_t
flags
,
int
onoff
)
{
...
...
@@ -371,7 +371,7 @@ int __toku_db_env_set_tmp_dir(DB_ENV * env, const char *tmp_dir) {
if
(
!
tmp_dir
)
return
EINVAL
;
if
(
env
->
i
->
tmp_dir
)
toku_free
(
env
->
i
->
tmp_dir
);
env
->
i
->
tmp_dir
=
strdup
(
tmp_dir
);
env
->
i
->
tmp_dir
=
toku_
strdup
(
tmp_dir
);
return
env
->
i
->
tmp_dir
?
0
:
ENOMEM
;
}
...
...
@@ -428,7 +428,7 @@ int db_env_create(DB_ENV ** envp, u_int32_t flags) {
memset
(
result
->
i
,
0
,
sizeof
*
result
->
i
);
result
->
i
->
ref_count
=
1
;
result
->
i
->
errcall
=
__toku_default_errcall
;
result
->
i
->
errpfx
=
strdup
(
""
);
result
->
i
->
errpfx
=
toku_
strdup
(
""
);
*
envp
=
result
;
return
0
;
...
...
@@ -617,7 +617,7 @@ int __toku_db_open(DB * db, DB_TXN * txn, const char *fname, const char *dbname,
goto
error_cleanup
;
}
// printf("Full name = %s\n", db->i->full_fname);
db
->
i
->
database_name
=
strdup
(
dbname
?
dbname
:
""
);
db
->
i
->
database_name
=
toku_
strdup
(
dbname
?
dbname
:
""
);
if
(
db
->
i
->
database_name
==
0
)
{
r
=
ENOMEM
;
goto
error_cleanup
;
...
...
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