Commit 849ea2b9 authored by Yoni Fogel's avatar Yoni Fogel

Addresses #123

DB->pget uses dbc->c_pget, but needs to convert DB_KEYEMPTY to DB_NOTFOUND.

git-svn-id: file:///svn/tokudb@974 c7de825b-a66e-492c-adef-691d508d4ae1
parent 2f62a7ac
......@@ -896,6 +896,7 @@ static int toku_db_pget (DB *db, DB_TXN *txn, DBT *key, DBT *pkey, DBT *data, u_
r = db->cursor(db, txn, &dbc, 0);
if (r!=0) return r;
r = dbc->c_pget(dbc, key, pkey, data, DB_SET);
if (r==DB_KEYEMPTY) r = DB_NOTFOUND;
r2 = dbc->c_close(dbc);
if (r!=0) return r;
return r2;
......
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