Jim Paton cb703c9d03 Allow WriteBatch::Handler to abort iteration
Summary:
Sometimes you don't need to iterate through the whole WriteBatch. This diff makes the Handler member functions return a bool that indicates whether to abort or not. If they return true, the iteration stops.

One thing I just thought of is that this will break backwards-compability. Maybe it would be better to add a virtual member function WriteBatch::Handler::ShouldAbort() that returns false by default. Comments requested.

I still have to add a new unit test for the abort code, but let's finalize the API first.

Test Plan: make -j32 check

Reviewers: dhruba, haobo, vamsi, emayanke

Reviewed By: dhruba

CC: leveldb

Differential Revision: https://reviews.facebook.net/D12339
2013-08-21 18:27:48 -07:00
..
2013-07-31 12:42:23 -07:00
2013-02-28 18:04:58 -08:00
2011-10-31 17:22:06 +00:00
2013-08-19 13:37:04 -07:00
2013-06-18 15:00:32 -07:00
2012-04-17 08:36:46 -07:00
2011-10-31 17:22:06 +00:00
2013-08-19 11:42:47 -07:00
2012-12-16 08:58:28 -08:00
2012-11-28 17:18:41 -08:00
2013-08-19 13:37:04 -07:00