Commit a692b565 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:4741], slight optimization

git-svn-id: file:///svn/toku/tokudb@43543 c7de825b-a66e-492c-adef-691d508d4ae1
parent b6336ce5
......@@ -2262,7 +2262,9 @@ toku_bnc_flush_to_child(
&stats_delta
);
}));
update_header_stats(&h->in_memory_stats, &stats_delta);
if (stats_delta.numbytes || stats_delta.numrows) {
update_header_stats(&h->in_memory_stats, &stats_delta);
}
// Run garbage collection, if we are a leaf entry.
TOKULOGGER logger = toku_cachefile_logger(h->cf);
if (child->height == 0 && logger) {
......
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