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
fcfdd42a
Commit
fcfdd42a
authored
Aug 26, 2008
by
Yoni Fogel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set more functions as inline.
git-svn-id:
file:///svn/tokudb@5838
c7de825b-a66e-492c-adef-691d508d4ae1
parent
ad17d4db
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
46 deletions
+46
-46
newbrt/leafentry.c
newbrt/leafentry.c
+46
-46
No files found.
newbrt/leafentry.c
View file @
fcfdd42a
...
...
@@ -275,155 +275,155 @@ void toku_free_LEAFENTRY(LEAFENTRY le) {
}
int
le_is_provdel
(
LEAFENTRY
le
)
{
in
line
in
t
le_is_provdel
(
LEAFENTRY
le
)
{
return
get_le_state
(
le
)
==
LE_PROVDEL
;
}
void
*
latest_key_le_committed
(
u_int32_t
UU
(
keylen
),
void
*
key
,
u_int32_t
UU
(
vallen
),
void
*
UU
(
val
))
{
inline
void
*
latest_key_le_committed
(
u_int32_t
UU
(
keylen
),
void
*
key
,
u_int32_t
UU
(
vallen
),
void
*
UU
(
val
))
{
return
key
;
}
void
*
latest_key_le_both
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
kval
,
u_int32_t
UU
(
clen
),
void
*
UU
(
cval
),
u_int32_t
UU
(
plen
),
void
*
UU
(
pval
))
{
inline
void
*
latest_key_le_both
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
kval
,
u_int32_t
UU
(
clen
),
void
*
UU
(
cval
),
u_int32_t
UU
(
plen
),
void
*
UU
(
pval
))
{
return
kval
;
}
void
*
latest_key_le_provdel
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
UU
(
kval
),
u_int32_t
UU
(
clen
),
void
*
UU
(
cval
))
{
inline
void
*
latest_key_le_provdel
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
UU
(
kval
),
u_int32_t
UU
(
clen
),
void
*
UU
(
cval
))
{
return
0
;
// for provisional delete, there is no *latest* key, so return NULL
}
void
*
latest_key_le_provpair
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
kval
,
u_int32_t
UU
(
plen
),
void
*
UU
(
pval
))
{
inline
void
*
latest_key_le_provpair
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
kval
,
u_int32_t
UU
(
plen
),
void
*
UU
(
pval
))
{
return
kval
;
}
void
*
le_latest_key
(
LEAFENTRY
le
)
{
inline
void
*
le_latest_key
(
LEAFENTRY
le
)
{
LESWITCHCALL
(
le
,
latest_key
);
}
u_int32_t
latest_keylen_le_committed
(
u_int32_t
keylen
,
void
*
UU
(
key
),
u_int32_t
UU
(
vallen
),
void
*
UU
(
val
))
{
inline
u_int32_t
latest_keylen_le_committed
(
u_int32_t
keylen
,
void
*
UU
(
key
),
u_int32_t
UU
(
vallen
),
void
*
UU
(
val
))
{
return
keylen
;
}
u_int32_t
latest_keylen_le_both
(
TXNID
UU
(
xid
),
u_int32_t
klen
,
void
*
UU
(
kval
),
u_int32_t
UU
(
clen
),
void
*
UU
(
cval
),
u_int32_t
UU
(
plen
),
void
*
UU
(
pval
))
{
inline
u_int32_t
latest_keylen_le_both
(
TXNID
UU
(
xid
),
u_int32_t
klen
,
void
*
UU
(
kval
),
u_int32_t
UU
(
clen
),
void
*
UU
(
cval
),
u_int32_t
UU
(
plen
),
void
*
UU
(
pval
))
{
return
klen
;
}
u_int32_t
latest_keylen_le_provdel
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
UU
(
kval
),
u_int32_t
UU
(
clen
),
void
*
UU
(
cval
))
{
inline
u_int32_t
latest_keylen_le_provdel
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
UU
(
kval
),
u_int32_t
UU
(
clen
),
void
*
UU
(
cval
))
{
return
0
;
// for provisional delete, there is no *latest* key, so return 0. What else can we do?
}
u_int32_t
latest_keylen_le_provpair
(
TXNID
UU
(
xid
),
u_int32_t
klen
,
void
*
UU
(
kval
),
u_int32_t
UU
(
plen
),
void
*
UU
(
pval
))
{
inline
u_int32_t
latest_keylen_le_provpair
(
TXNID
UU
(
xid
),
u_int32_t
klen
,
void
*
UU
(
kval
),
u_int32_t
UU
(
plen
),
void
*
UU
(
pval
))
{
return
klen
;
}
u_int32_t
le_latest_keylen
(
LEAFENTRY
le
)
{
inline
u_int32_t
le_latest_keylen
(
LEAFENTRY
le
)
{
LESWITCHCALL
(
le
,
latest_keylen
);
}
void
*
latest_val_le_committed
(
u_int32_t
UU
(
keylen
),
void
*
UU
(
key
),
u_int32_t
UU
(
vallen
),
void
*
UU
(
val
))
{
inline
void
*
latest_val_le_committed
(
u_int32_t
UU
(
keylen
),
void
*
UU
(
key
),
u_int32_t
UU
(
vallen
),
void
*
UU
(
val
))
{
return
val
;
}
void
*
latest_val_le_both
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
UU
(
kval
),
u_int32_t
UU
(
clen
),
void
*
UU
(
cval
),
u_int32_t
UU
(
plen
),
void
*
pval
)
{
inline
void
*
latest_val_le_both
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
UU
(
kval
),
u_int32_t
UU
(
clen
),
void
*
UU
(
cval
),
u_int32_t
UU
(
plen
),
void
*
pval
)
{
return
pval
;
}
void
*
latest_val_le_provdel
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
UU
(
kval
),
u_int32_t
UU
(
clen
),
void
*
UU
(
cval
))
{
inline
void
*
latest_val_le_provdel
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
UU
(
kval
),
u_int32_t
UU
(
clen
),
void
*
UU
(
cval
))
{
return
0
;
// for provisional delete, there is no *latest* key, so return NULL
}
void
*
latest_val_le_provpair
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
UU
(
kval
),
u_int32_t
UU
(
plen
),
void
*
pval
)
{
inline
void
*
latest_val_le_provpair
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
UU
(
kval
),
u_int32_t
UU
(
plen
),
void
*
pval
)
{
return
pval
;
}
void
*
le_latest_val
(
LEAFENTRY
le
)
{
inline
void
*
le_latest_val
(
LEAFENTRY
le
)
{
LESWITCHCALL
(
le
,
latest_val
);
}
u_int32_t
latest_vallen_le_committed
(
u_int32_t
UU
(
keylen
),
void
*
UU
(
key
),
u_int32_t
vallen
,
void
*
UU
(
val
))
{
inline
u_int32_t
latest_vallen_le_committed
(
u_int32_t
UU
(
keylen
),
void
*
UU
(
key
),
u_int32_t
vallen
,
void
*
UU
(
val
))
{
return
vallen
;
}
u_int32_t
latest_vallen_le_both
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
UU
(
kval
),
u_int32_t
UU
(
clen
),
void
*
UU
(
cval
),
u_int32_t
plen
,
void
*
UU
(
pval
))
{
inline
u_int32_t
latest_vallen_le_both
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
UU
(
kval
),
u_int32_t
UU
(
clen
),
void
*
UU
(
cval
),
u_int32_t
plen
,
void
*
UU
(
pval
))
{
return
plen
;
}
u_int32_t
latest_vallen_le_provdel
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
UU
(
kval
),
u_int32_t
UU
(
clen
),
void
*
UU
(
cval
))
{
inline
u_int32_t
latest_vallen_le_provdel
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
UU
(
kval
),
u_int32_t
UU
(
clen
),
void
*
UU
(
cval
))
{
return
0
;
// for provisional delete, there is no *latest* key, so return 0. What else can we do?
}
u_int32_t
latest_vallen_le_provpair
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
UU
(
kval
),
u_int32_t
plen
,
void
*
UU
(
pval
))
{
inline
u_int32_t
latest_vallen_le_provpair
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
UU
(
kval
),
u_int32_t
plen
,
void
*
UU
(
pval
))
{
return
plen
;
}
u_int32_t
le_latest_vallen
(
LEAFENTRY
le
)
{
inline
u_int32_t
le_latest_vallen
(
LEAFENTRY
le
)
{
LESWITCHCALL
(
le
,
latest_vallen
);
}
void
*
any_key_le_committed
(
u_int32_t
UU
(
keylen
),
void
*
key
,
u_int32_t
UU
(
vallen
),
void
*
UU
(
val
))
{
inline
void
*
any_key_le_committed
(
u_int32_t
UU
(
keylen
),
void
*
key
,
u_int32_t
UU
(
vallen
),
void
*
UU
(
val
))
{
return
key
;
}
void
*
any_key_le_both
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
kval
,
u_int32_t
UU
(
clen
),
void
*
UU
(
cval
),
u_int32_t
UU
(
plen
),
void
*
UU
(
pval
))
{
inline
void
*
any_key_le_both
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
kval
,
u_int32_t
UU
(
clen
),
void
*
UU
(
cval
),
u_int32_t
UU
(
plen
),
void
*
UU
(
pval
))
{
return
kval
;
}
void
*
any_key_le_provdel
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
kval
,
u_int32_t
UU
(
clen
),
void
*
UU
(
cval
))
{
inline
void
*
any_key_le_provdel
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
kval
,
u_int32_t
UU
(
clen
),
void
*
UU
(
cval
))
{
return
kval
;
}
void
*
any_key_le_provpair
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
kval
,
u_int32_t
UU
(
plen
),
void
*
UU
(
pval
))
{
inline
void
*
any_key_le_provpair
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
kval
,
u_int32_t
UU
(
plen
),
void
*
UU
(
pval
))
{
return
kval
;
}
void
*
le_any_key
(
LEAFENTRY
le
)
{
inline
void
*
le_any_key
(
LEAFENTRY
le
)
{
LESWITCHCALL
(
le
,
any_key
);
}
u_int32_t
any_keylen_le_committed
(
u_int32_t
keylen
,
void
*
UU
(
key
),
u_int32_t
UU
(
vallen
),
void
*
UU
(
val
))
{
inline
u_int32_t
any_keylen_le_committed
(
u_int32_t
keylen
,
void
*
UU
(
key
),
u_int32_t
UU
(
vallen
),
void
*
UU
(
val
))
{
return
keylen
;
}
u_int32_t
any_keylen_le_both
(
TXNID
UU
(
xid
),
u_int32_t
klen
,
void
*
UU
(
kval
),
u_int32_t
UU
(
clen
),
void
*
UU
(
cval
),
u_int32_t
UU
(
plen
),
void
*
UU
(
pval
))
{
inline
u_int32_t
any_keylen_le_both
(
TXNID
UU
(
xid
),
u_int32_t
klen
,
void
*
UU
(
kval
),
u_int32_t
UU
(
clen
),
void
*
UU
(
cval
),
u_int32_t
UU
(
plen
),
void
*
UU
(
pval
))
{
return
klen
;
}
u_int32_t
any_keylen_le_provdel
(
TXNID
UU
(
xid
),
u_int32_t
klen
,
void
*
UU
(
kval
),
u_int32_t
UU
(
clen
),
void
*
UU
(
cval
))
{
inline
u_int32_t
any_keylen_le_provdel
(
TXNID
UU
(
xid
),
u_int32_t
klen
,
void
*
UU
(
kval
),
u_int32_t
UU
(
clen
),
void
*
UU
(
cval
))
{
return
klen
;
}
u_int32_t
any_keylen_le_provpair
(
TXNID
UU
(
xid
),
u_int32_t
klen
,
void
*
UU
(
kval
),
u_int32_t
UU
(
plen
),
void
*
UU
(
pval
))
{
inline
u_int32_t
any_keylen_le_provpair
(
TXNID
UU
(
xid
),
u_int32_t
klen
,
void
*
UU
(
kval
),
u_int32_t
UU
(
plen
),
void
*
UU
(
pval
))
{
return
klen
;
}
u_int32_t
le_any_keylen
(
LEAFENTRY
le
)
{
inline
u_int32_t
le_any_keylen
(
LEAFENTRY
le
)
{
LESWITCHCALL
(
le
,
any_keylen
);
}
void
*
any_val_le_committed
(
u_int32_t
UU
(
keylen
),
void
*
UU
(
key
),
u_int32_t
UU
(
vallen
),
void
*
UU
(
val
))
{
inline
void
*
any_val_le_committed
(
u_int32_t
UU
(
keylen
),
void
*
UU
(
key
),
u_int32_t
UU
(
vallen
),
void
*
UU
(
val
))
{
return
val
;
}
void
*
any_val_le_both
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
UU
(
kval
),
u_int32_t
UU
(
clen
),
void
*
cval
,
u_int32_t
UU
(
plen
),
void
*
UU
(
pval
))
{
inline
void
*
any_val_le_both
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
UU
(
kval
),
u_int32_t
UU
(
clen
),
void
*
cval
,
u_int32_t
UU
(
plen
),
void
*
UU
(
pval
))
{
return
cval
;
}
void
*
any_val_le_provdel
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
UU
(
kval
),
u_int32_t
UU
(
clen
),
void
*
cval
)
{
inline
void
*
any_val_le_provdel
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
UU
(
kval
),
u_int32_t
UU
(
clen
),
void
*
cval
)
{
return
cval
;
}
void
*
any_val_le_provpair
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
UU
(
kval
),
u_int32_t
UU
(
plen
),
void
*
pval
)
{
inline
void
*
any_val_le_provpair
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
UU
(
kval
),
u_int32_t
UU
(
plen
),
void
*
pval
)
{
return
pval
;
}
void
*
le_any_val
(
LEAFENTRY
le
)
{
inline
void
*
le_any_val
(
LEAFENTRY
le
)
{
LESWITCHCALL
(
le
,
any_val
);
}
u_int32_t
any_vallen_le_committed
(
u_int32_t
UU
(
keylen
),
void
*
UU
(
key
),
u_int32_t
vallen
,
void
*
UU
(
val
))
{
inline
u_int32_t
any_vallen_le_committed
(
u_int32_t
UU
(
keylen
),
void
*
UU
(
key
),
u_int32_t
vallen
,
void
*
UU
(
val
))
{
return
vallen
;
}
u_int32_t
any_vallen_le_both
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
UU
(
kval
),
u_int32_t
UU
(
clen
),
void
*
UU
(
cval
),
u_int32_t
plen
,
void
*
UU
(
pval
))
{
inline
u_int32_t
any_vallen_le_both
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
UU
(
kval
),
u_int32_t
UU
(
clen
),
void
*
UU
(
cval
),
u_int32_t
plen
,
void
*
UU
(
pval
))
{
return
plen
;
}
u_int32_t
any_vallen_le_provdel
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
UU
(
kval
),
u_int32_t
clen
,
void
*
UU
(
cval
))
{
inline
u_int32_t
any_vallen_le_provdel
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
UU
(
kval
),
u_int32_t
clen
,
void
*
UU
(
cval
))
{
return
clen
;
// for provisional delete, there is no *any* key, so return 0. What else can we do?
}
u_int32_t
any_vallen_le_provpair
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
UU
(
kval
),
u_int32_t
plen
,
void
*
UU
(
pval
))
{
inline
u_int32_t
any_vallen_le_provpair
(
TXNID
UU
(
xid
),
u_int32_t
UU
(
klen
),
void
*
UU
(
kval
),
u_int32_t
plen
,
void
*
UU
(
pval
))
{
return
plen
;
}
u_int32_t
le_any_vallen
(
LEAFENTRY
le
)
{
inline
u_int32_t
le_any_vallen
(
LEAFENTRY
le
)
{
LESWITCHCALL
(
le
,
any_vallen
);
}
u_int64_t
any_xid_le_committed
(
u_int32_t
UU
(
keylen
),
void
*
UU
(
key
),
u_int32_t
UU
(
vallen
),
void
*
UU
(
val
))
{
inline
u_int64_t
any_xid_le_committed
(
u_int32_t
UU
(
keylen
),
void
*
UU
(
key
),
u_int32_t
UU
(
vallen
),
void
*
UU
(
val
))
{
return
0
;
}
u_int64_t
any_xid_le_both
(
TXNID
xid
,
u_int32_t
UU
(
klen
),
void
*
UU
(
kval
),
u_int32_t
UU
(
clen
),
void
*
UU
(
cval
),
u_int32_t
UU
(
plen
),
void
*
UU
(
pval
))
{
inline
u_int64_t
any_xid_le_both
(
TXNID
xid
,
u_int32_t
UU
(
klen
),
void
*
UU
(
kval
),
u_int32_t
UU
(
clen
),
void
*
UU
(
cval
),
u_int32_t
UU
(
plen
),
void
*
UU
(
pval
))
{
return
xid
;
}
u_int64_t
any_xid_le_provdel
(
TXNID
xid
,
u_int32_t
UU
(
klen
),
void
*
UU
(
kval
),
u_int32_t
UU
(
clen
),
void
*
UU
(
cval
))
{
inline
u_int64_t
any_xid_le_provdel
(
TXNID
xid
,
u_int32_t
UU
(
klen
),
void
*
UU
(
kval
),
u_int32_t
UU
(
clen
),
void
*
UU
(
cval
))
{
return
xid
;
}
u_int64_t
any_xid_le_provpair
(
TXNID
xid
,
u_int32_t
UU
(
klen
),
void
*
UU
(
kval
),
u_int32_t
UU
(
plen
),
void
*
UU
(
pval
))
{
inline
u_int64_t
any_xid_le_provpair
(
TXNID
xid
,
u_int32_t
UU
(
klen
),
void
*
UU
(
kval
),
u_int32_t
UU
(
plen
),
void
*
UU
(
pval
))
{
return
xid
;
}
u_int64_t
le_any_xid
(
LEAFENTRY
le
)
{
inline
u_int64_t
le_any_xid
(
LEAFENTRY
le
)
{
LESWITCHCALL
(
le
,
any_xid
);
}
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