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
b4d0b559
Commit
b4d0b559
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
bbc18679
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 @
b4d0b559
...
...
@@ -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 @
b4d0b559
...
...
@@ -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