lib: changed Restore's record retrieval into a state machine
commit82364bb39ea157edaea820990518091993e3b828
authorChris Frey <cdfrey@foursquare.net>
Thu, 23 Dec 2010 23:17:10 +0000 (23 18:17 -0500)
committerChris Frey <cdfrey@foursquare.net>
Fri, 24 Dec 2010 00:35:05 +0000 (23 19:35 -0500)
treebe7ecae401e476c141ac32de839d804bf510e33b
parentbef3eb316288fce39d48e5e6eb1f956d8b8ddcf3
lib: changed Restore's record retrieval into a state machine

At times, it may be useful to "peek" at the next record's meta
data, so as to make decisions based on DBName, etc.

In order to do this safely, Retrieve() needs to be able to be
called multiple times.  The more fine-grained state machine,
instead of just true/false, is more helpful.
src/restore.cc
src/restore.h