Commit 8f79300e authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:3645], fix bug in pe_est_callback

git-svn-id: file:///svn/toku/tokudb@34176 c7de825b-a66e-492c-adef-691d508d4ae1
parent 620c0f36
......@@ -695,7 +695,7 @@ void toku_brtnode_pe_est_callback(
// we estimate the compressed size of data to be how large
// the compressed data is on disk
for (int i = 0; i < node->n_children; i++) {
if (BP_SHOULD_EVICT(node,i)) {
if (BP_STATE(node,i) == PT_AVAIL && BP_SHOULD_EVICT(node,i)) {
// calculate how much data would be freed if
// we compress this node and add it to
// bytes_to_free
......
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