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
c2227cb6
Commit
c2227cb6
authored
Oct 17, 2007
by
Bradley C. Kuszmaul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Be sure to set dirty bit in header
git-svn-id:
file:///svn/tokudb@484
c7de825b-a66e-492c-adef-691d508d4ae1
parent
83d94d27
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
newbrt/brt.c
newbrt/brt.c
+2
-0
No files found.
newbrt/brt.c
View file @
c2227cb6
...
...
@@ -1180,6 +1180,7 @@ int open_brt (const char *fname, const char *dbname, int is_create, BRT *newbrt,
if
((
t
->
h
->
names
[
t
->
h
->
n_named_roots
-
1
]
=
toku_strdup
(
dbname
))
==
0
)
{
assert
(
errno
==
ENOMEM
);
r
=
ENOMEM
;
goto
died1
;
}
printf
(
"%s:%d t=%p
\n
"
,
__FILE__
,
__LINE__
,
t
);
t
->
h
->
roots
[
t
->
h
->
n_named_roots
-
1
]
=
malloc_diskblock_header_is_in_memory
(
t
,
t
->
h
->
nodesize
);
t
->
h
->
dirty
=
1
;
if
((
r
=
setup_brt_root_node
(
t
,
t
->
h
->
roots
[
t
->
h
->
n_named_roots
-
1
]))
!=
0
)
goto
died1
;
}
}
else
{
...
...
@@ -1188,6 +1189,7 @@ int open_brt (const char *fname, const char *dbname, int is_create, BRT *newbrt,
if
(
t
->
h
->
n_named_roots
!=-
1
)
{
r
=
-
2
;
/* invalid args??? */
;
goto
died1
;
}
}
else
{
int
i
;
printf
(
"%s:%d n_roots=%d
\n
"
,
__FILE__
,
__LINE__
,
t
->
h
->
n_named_roots
);
for
(
i
=
0
;
i
<
t
->
h
->
n_named_roots
;
i
++
)
{
if
(
strcmp
(
t
->
h
->
names
[
i
],
dbname
)
==
0
)
{
goto
found_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