Files
dolt/go/hash
Chris Masone 143b27d833 Add validation to BatchStore used by LocalDatabase ONLY during Pull()
LocalDatabase generally uses a BatchStoreAdaptor, which is a kinda
dumb wrapper around ChunkStore. During a Pull(), though, this would
cause Chunks to be Put in a top-down fashion, meaning that Chunks
wound up in the backing store _before_ other Chunks that they
reference.  This means that LocalDatabases were transiently invalid,
and that cancelling an in-progress pull could lead to an invalid DB.

Now, calling validatingBatchStore() on a LocalDatabase returns a
BatchStore that uses the same strategy as RemoteDatabaseClient,
caching chunks as the come in and putting them into the backing store
bottom-up when Flush() is called.

Fixes #1915
2016-07-18 15:48:31 -07:00
..
2016-07-12 16:02:32 -07:00