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
967748e3
Commit
967748e3
authored
Dec 27, 2007
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implement Dbc::del addresses #227
git-svn-id:
file:///svn/tokudb@1394
c7de825b-a66e-492c-adef-691d508d4ae1
parent
3b543917
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
cxx/dbc.cpp
cxx/dbc.cpp
+8
-0
include/db_cxx.h
include/db_cxx.h
+1
-0
No files found.
cxx/dbc.cpp
View file @
967748e3
...
...
@@ -15,6 +15,14 @@ int Dbc::get(Dbt* key, Dbt *data, u_int32_t flags) {
return
env
->
maybe_throw_error
(
ret
);
}
int
Dbc
::
del
(
u_int32_t
flags
)
{
DBC
*
dbc
=
this
;
int
ret
=
dbc
->
c_del
(
dbc
,
flags
);
DB_ENV
*
dbenv_c
=
dbc
->
dbp
->
dbenv
;
DbEnv
*
env
=
(
DbEnv
*
)
dbenv_c
->
api1_internal
;
return
env
->
maybe_throw_error
(
ret
);
}
// Not callable, but some compilers require it to be defined anyway.
Dbc
::~
Dbc
()
{
...
...
include/db_cxx.h
View file @
967748e3
...
...
@@ -175,6 +175,7 @@ class Dbc : protected DBC
public:
int
close
(
void
);
int
get
(
Dbt
*
,
Dbt
*
,
u_int32_t
);
int
del
(
u_int32_t
);
private:
Dbc
();
// User may not call it.
~
Dbc
();
// User may not delete 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