fix integer arithmetic bug that caused C0 and C1 to merge arbitrarily often
git-svn-id: svn+ssh://svn.corp.yahoo.com/yahoo/yrl/labs/pnuts/code/logstore@767 8dad8b1f-cf64-0410-95b6-bcf113ffbcfe
This commit is contained in:
parent
2ea8b9ff44
commit
fb073c5671
1 changed files with 1 additions and 1 deletions
|
@ -415,7 +415,7 @@ void logtable<TUPLE>::insertTuple(datatuple *tuple)
|
||||||
tree_c0->insert(new_t); //insert the new tuple
|
tree_c0->insert(new_t); //insert the new tuple
|
||||||
|
|
||||||
//update the tree size (+ new_t size - pre_t size)
|
//update the tree size (+ new_t size - pre_t size)
|
||||||
tree_bytes += (new_t->byte_length() - pre_t->byte_length());
|
tree_bytes += ((int64_t)new_t->byte_length() - (int64_t)pre_t->byte_length());
|
||||||
|
|
||||||
datatuple::freetuple(pre_t); //free the previous tuple
|
datatuple::freetuple(pre_t); //free the previous tuple
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue