Commit b4d0b559 authored by Rich Prohaska's avatar Rich Prohaska

implement Dbc::del addresses #227

git-svn-id: file:///svn/tokudb@1394 c7de825b-a66e-492c-adef-691d508d4ae1
parent bbc18679
......@@ -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()
{
......
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment