Commit b7ad1269 authored by Yoni Fogel's avatar Yoni Fogel

Addresses #1378 Finish merging scanrace.c

git-svn-id: file:///svn/toku/tokudb@9508 c7de825b-a66e-492c-adef-691d508d4ae1
parent 2d528980
...@@ -106,10 +106,12 @@ struct extra_count { ...@@ -106,10 +106,12 @@ struct extra_count {
int rowcounter; int rowcounter;
}; };
static void counttotalbytes (DBT const *key, DBT const *data, void *extrav) { static int
counttotalbytes (DBT const *key, DBT const *data, void *extrav) {
struct extra_count *e=extrav; struct extra_count *e=extrav;
e->totalbytes += key->size + data->size; e->totalbytes += key->size + data->size;
e->rowcounter++; e->rowcounter++;
return 0;
} }
static void scanrace_lwc (void) { static void scanrace_lwc (void) {
......
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