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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
c64a51a2
Commit
c64a51a2
authored
May 28, 2013
by
Leif Walsh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove overactive assert that in_memory_stats.numbytes is nonnegative #18
parent
138452e8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
ft/ft-ops.cc
ft/ft-ops.cc
+7
-3
No files found.
ft/ft-ops.cc
View file @
c64a51a2
...
...
@@ -6074,10 +6074,14 @@ int toku_ft_get_key_after_bytes(FT_HANDLE ft_h, const DBT *start_key, uint64_t s
ft_search_init
(
&
search
,
(
start_key
==
nullptr
?
ft_cursor_compare_one
:
ft_cursor_compare_set_range
),
FT_SEARCH_LEFT
,
start_key
,
ft_h
);
int
r
;
paranoid_invariant
(
ft
->
in_memory_stats
.
numbytes
>=
0
);
uint64_t
numbytes
=
(
uint64_t
)
ft
->
in_memory_stats
.
numbytes
;
// We can't do this because of #5768, there may be dictionaries in the wild that have negative stats. This won't affect mongo so it's ok:
//paranoid_invariant(ft->in_memory_stats.numbytes >= 0);
int64_t
numbytes
=
ft
->
in_memory_stats
.
numbytes
;
if
(
numbytes
<
0
)
{
numbytes
=
0
;
}
uint64_t
skipped
=
0
;
r
=
get_key_after_bytes_in_subtree
(
ft_h
,
ft
,
root
,
&
unlockers
,
nullptr
,
&
infinite_bounds
,
&
bfe
,
&
search
,
numbytes
,
start_key
,
skip_len
,
callback
,
cb_extra
,
&
skipped
);
r
=
get_key_after_bytes_in_subtree
(
ft_h
,
ft
,
root
,
&
unlockers
,
nullptr
,
&
infinite_bounds
,
&
bfe
,
&
search
,
(
uint64_t
)
numbytes
,
start_key
,
skip_len
,
callback
,
cb_extra
,
&
skipped
);
assert
(
!
unlockers
.
locked
);
if
(
r
!=
TOKUDB_TRY_AGAIN
)
{
if
(
r
==
DB_NOTFOUND
)
{
...
...
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