Commit 3b7ed01d authored by Yoni Fogel's avatar Yoni Fogel

Addresses #123

c_get will silently delete any out of date entries (relies on c_pget)
Replaced comment about unimplemented variable with #ifdef

git-svn-id: file:///svn/tokudb@968 c7de825b-a66e-492c-adef-691d508d4ae1
parent 19d927b9
...@@ -646,9 +646,12 @@ static int toku_c_get(DBC * c, DBT * key, DBT * data, u_int32_t flag) { ...@@ -646,9 +646,12 @@ static int toku_c_get(DBC * c, DBT * key, DBT * data, u_int32_t flag) {
/* It is an error to use the DB_GET_BOTH or DB_GET_BOTH_RANGE flag on a /* It is an error to use the DB_GET_BOTH or DB_GET_BOTH_RANGE flag on a
* cursor that has been opened on a secondary index handle. * cursor that has been opened on a secondary index handle.
* DB_GET_BOTH_RANGE not implemented yet.
*/ */
if ((get_flag == DB_GET_BOTH) /* || (get_flag == DB_GET_BOTH_RANGE)*/) return EINVAL; if ((get_flag == DB_GET_BOTH)
#ifdef DB_GET_BOTH_RANGE
|| (get_flag == DB_GET_BOTH_RANGE)
#endif
) return EINVAL;
memset(&primary_key, 0, sizeof(primary_key)); memset(&primary_key, 0, sizeof(primary_key));
r = toku_c_pget(c, key, &primary_key, data, flag); r = toku_c_pget(c, key, &primary_key, data, flag);
} }
......
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