mirror of
https://github.com/MariaDB/server.git
synced 2025-11-30 05:23:50 +03:00
add exceptions to dbc.cpp. Addresses #215.
git-svn-id: file:///svn/tokudb@1316 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
@@ -3,11 +3,13 @@
|
||||
int Dbc::close (void) {
|
||||
DBC *dbc = this;
|
||||
int ret = dbc->c_close(dbc);
|
||||
return ret;
|
||||
DbEnv *env = (DbEnv*)dbc->dbp->api_internal;
|
||||
return env->maybe_throw_error(ret);
|
||||
}
|
||||
|
||||
int Dbc::get(Dbt* key, Dbt *data, u_int32_t flags) {
|
||||
DBC *dbc = this;
|
||||
int ret = dbc->c_get(dbc, key, data, flags);
|
||||
return ret;
|
||||
DbEnv *env = (DbEnv*)dbc->dbp->api_internal;
|
||||
return env->maybe_throw_error(ret);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user