Commit 20540c01 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

#2946 change some var names refs[t:2946]

git-svn-id: file:///svn/toku/tokudb@25699 c7de825b-a66e-492c-adef-691d508d4ae1
parent 1317c323
...@@ -40,8 +40,7 @@ le_cursor_create(LE_CURSOR *le_cursor_result, BRT brt, TOKUTXN txn) { ...@@ -40,8 +40,7 @@ le_cursor_create(LE_CURSOR *le_cursor_result, BRT brt, TOKUTXN txn) {
int int
le_cursor_close(LE_CURSOR le_cursor) { le_cursor_close(LE_CURSOR le_cursor) {
int result = 0; int result = toku_brt_cursor_close(le_cursor->brt_cursor);
result = toku_brt_cursor_close(le_cursor->brt_cursor);
toku_destroy_dbt(&le_cursor->key); toku_destroy_dbt(&le_cursor->key);
toku_free(le_cursor); toku_free(le_cursor);
return result; return result;
...@@ -63,12 +62,12 @@ int ...@@ -63,12 +62,12 @@ int
le_cursor_next(LE_CURSOR le_cursor, DBT *key, DBT *val) { le_cursor_next(LE_CURSOR le_cursor, DBT *key, DBT *val) {
le_cursor->neg_infinity = FALSE; le_cursor->neg_infinity = FALSE;
struct le_cursor_callback_arg arg = { &le_cursor->key, val }; struct le_cursor_callback_arg arg = { &le_cursor->key, val };
int error = toku_brt_cursor_get(le_cursor->brt_cursor, NULL, le_cursor_callback, &arg, DB_NEXT); int result = toku_brt_cursor_get(le_cursor->brt_cursor, NULL, le_cursor_callback, &arg, DB_NEXT);
if (error == 0 && key != NULL) if (result == 0 && key != NULL)
toku_dbt_set(le_cursor->key.size, le_cursor->key.data, key, NULL); toku_dbt_set(le_cursor->key.size, le_cursor->key.data, key, NULL);
else if (error == DB_NOTFOUND) else if (result == DB_NOTFOUND)
le_cursor->pos_infinity = TRUE; le_cursor->pos_infinity = TRUE;
return error; return result;
} }
int int
...@@ -77,7 +76,7 @@ is_key_right_of_le_cursor(LE_CURSOR le_cursor, const DBT *key, int (*keycompare) ...@@ -77,7 +76,7 @@ is_key_right_of_le_cursor(LE_CURSOR le_cursor, const DBT *key, int (*keycompare)
if (le_cursor->neg_infinity) if (le_cursor->neg_infinity)
result = TRUE; result = TRUE;
else if (le_cursor->pos_infinity) else if (le_cursor->pos_infinity)
return FALSE; result = FALSE;
else { else {
int r = keycompare(db, &le_cursor->key, key); int r = keycompare(db, &le_cursor->key, key);
if (r < 0) if (r < 0)
......
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