Commit a7feec69 authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul

brt cursor starting to work

git-svn-id: file:///svn/tokudb@22 c7de825b-a66e-492c-adef-691d508d4ae1
parent 8858b512
...@@ -1547,7 +1547,7 @@ int brt_c_get (BRT_CURSOR cursor, DBT *kbt, DBT *vbt, int flags) { ...@@ -1547,7 +1547,7 @@ int brt_c_get (BRT_CURSOR cursor, DBT *kbt, DBT *vbt, int flags) {
r=pma_cget_current(cursor->pmacurs, kbt, vbt); r=pma_cget_current(cursor->pmacurs, kbt, vbt);
break; break;
case DB_NEXT: case DB_NEXT:
if (cursor->path_len<0) return brt_c_get(cursor, kbt, vbt, (flags&(~DB_NEXT))|DB_FIRST); if (cursor->path_len<=0) return brt_c_get(cursor, kbt, vbt, (flags&(~DB_NEXT))|DB_FIRST);
assert(cursor->path_len>0); assert(cursor->path_len>0);
r=brtcurs_set_position_next(cursor); if (r!=0) goto died0; r=brtcurs_set_position_next(cursor); if (r!=0) goto died0;
r=pma_cget_current(cursor->pmacurs, kbt, vbt); r=pma_cget_current(cursor->pmacurs, kbt, vbt);
......
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