Igor Canadi 65a8a52b54 Decrease reliance on VersionSet::NumberLevels()
Summary:
With column families VersionSet will not have a constant number of levels (each CF can have different options), so we'll need to eliminate call to VersionSet::NumberLevels()

This diff decreases number of callsites, but we're not there yet. It associates number of levels with Version (each version is associated with single CF) instead of VersionSet.

I have also slightly changed how VersionSet keeps track of manifest size.

This diff also modifies constructor of Compaction such that it takes input_version and automatically Ref()s it. Before this was done outside of constructor.

In next diffs I will continue to decrease number of callsites of VersionSet::NumberLevels() and also references to current_

Test Plan: make check

Reviewers: haobo, dhruba, kailiu, sdong

Reviewed By: sdong

Differential Revision: https://reviews.facebook.net/D15171
2014-01-15 16:15:43 -08:00
..
2014-01-10 17:56:35 +08:00
2014-01-06 11:11:19 -08:00
2013-10-23 14:38:52 -07:00
2013-11-16 11:21:34 +00:00
2013-12-11 08:33:29 -08:00
2013-12-09 14:06:52 -08:00
2013-12-09 14:06:52 -08:00
2013-12-11 11:18:00 -08:00
2013-11-07 11:31:56 -08:00
2013-12-03 12:42:15 -08:00
2013-12-03 12:42:15 -08:00
2013-11-12 21:22:32 -08:00
2013-12-03 12:42:15 -08:00