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
cacb2342
Commit
cacb2342
authored
Jan 08, 2008
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove pivot flags. addresses #247
git-svn-id:
file:///svn/tokudb@1558
c7de825b-a66e-492c-adef-691d508d4ae1
parent
9176f195
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
13 deletions
+1
-13
newbrt/pma.c
newbrt/pma.c
+1
-13
No files found.
newbrt/pma.c
View file @
cacb2342
...
...
@@ -260,15 +260,6 @@ void toku_pma_show_stats (void) {
printf
(
"%d finds, %d divides, %d scans
\n
"
,
pma_count_finds
,
pma_count_divides
,
pma_count_scans
);
}
static
int
pma_compare_kv_kv
(
PMA
pma
,
struct
kv_pair
*
a
,
struct
kv_pair
*
b
)
{
DBT
dbta
,
dbtb
;;
int
cmp
=
pma
->
compare_fun
(
pma
->
db
,
toku_fill_dbt
(
&
dbta
,
kv_pair_key
(
a
),
kv_pair_keylen
(
a
)),
toku_fill_dbt
(
&
dbtb
,
kv_pair_key
(
b
),
kv_pair_keylen
(
b
)));
if
(
cmp
==
0
&&
(
pma
->
dup_mode
&
TOKU_DB_DUPSORT
))
{
cmp
=
pma
->
dup_compare_fun
(
pma
->
db
,
toku_fill_dbt
(
&
dbta
,
kv_pair_val
(
a
),
kv_pair_vallen
(
b
)),
toku_fill_dbt
(
&
dbtb
,
kv_pair_val
(
b
),
kv_pair_vallen
(
b
)));
}
return
cmp
;
}
static
int
pma_compare_dbt_kv
(
PMA
pma
,
DBT
*
k
,
DBT
*
v
,
struct
kv_pair
*
kv
)
{
DBT
k2
,
v2
;
int
cmp
=
pma
->
compare_fun
(
pma
->
db
,
k
,
toku_fill_dbt
(
&
k2
,
kv_pair_key
(
kv
),
kv_pair_keylen
(
kv
)));
...
...
@@ -1460,10 +1451,7 @@ int toku_pma_split(TOKUTXN txn, FILENUM filenum,
splitk
->
data
=
kv_pair_malloc
(
kv_pair_key
(
a
),
kv_pair_keylen
(
a
),
0
,
0
);
splitk
->
size
=
kv_pair_keylen
(
a
);
}
splitk
->
flags
=
BRT_PIVOT_PRESENT_L
;
if
(
spliti
<
npairs
&&
pma_compare_kv_kv
(
origpma
,
a
,
pairs
[
spliti
].
pair
)
==
0
)
{
splitk
->
flags
+=
BRT_PIVOT_PRESENT_R
;
}
splitk
->
flags
=
0
;
}
/* put the first half of pairs into the left pma */
...
...
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