Chip Turner 0b83a83191 Fix poor error on num_levels mismatch and few other minor improvements
Summary:
Previously, if you opened a db with num_levels set lower than
the database, you received the unhelpful message "Corruption:
VersionEdit: new-file entry."  Now you get a more verbose message
describing the issue.

Also, fix handling of compression_levels (both the run-over-the-end
issue and the memory management of it).

Lastly, unique_ptr'ify a couple of minor calls.

Test Plan: make check

Reviewers: dhruba

Reviewed By: dhruba

CC: leveldb

Differential Revision: https://reviews.facebook.net/D8151
2013-01-25 15:37:26 -08:00
..
2011-10-31 17:22:06 +00:00
2012-11-28 17:18:41 -08:00
2012-11-07 14:19:48 -08:00
2011-10-31 17:22:06 +00:00
2011-10-31 17:22:06 +00:00
2012-09-16 19:33:43 -07:00
2012-12-16 08:58:28 -08:00
2012-12-16 08:58:28 -08:00
2012-12-17 11:26:59 -08:00
2012-12-17 11:26:59 -08:00
2012-12-17 11:26:59 -08:00
2011-10-31 17:22:06 +00:00
2013-01-03 17:13:56 -08:00
2013-01-03 17:13:56 -08:00
2012-11-28 17:18:41 -08:00
2013-01-03 17:13:56 -08:00
2013-01-14 18:40:22 -08:00