Igor Canadi 5142b37000 Fix a group commit bug in LogAndApply
Summary:
EncodeTo(&record) does not overwrite, it appends to it.

This means that group commit log and apply will look something like:
record1
record1record2
record1record2record3

I'm surprised this didn't show up in production, but I think the reason is that MANIFEST group commit almost never happens.

This bug turned up in column family work, where opening a database failed with "adding a same column family twice".

Test Plan: Tested the change in column family branch and observed that the problem is gone (with db_stress)

Reviewers: dhruba, haobo

Reviewed By: dhruba

CC: leveldb

Differential Revision: https://reviews.facebook.net/D16461
2014-03-03 17:10:43 -08:00
..
2014-02-24 15:15:34 -08:00
2014-02-25 10:32:28 -08:00
2014-02-25 10:43:46 -08:00
2014-02-28 13:19:47 -08:00
2013-10-25 08:32:14 -07:00
2014-01-29 20:40:41 -08:00
2014-01-29 20:40:41 -08:00
2014-02-28 13:19:47 -08:00
2014-01-27 14:49:10 -08:00
2014-02-28 13:19:47 -08:00
2014-02-12 11:42:54 -08:00
2014-02-12 11:42:54 -08:00
2014-01-17 12:46:06 -08:00
2014-02-28 13:19:47 -08:00
2014-01-30 22:10:10 -08:00
2014-01-23 16:26:08 -08:00