BVLC/caffe — pull request #368 by shelhamer (2014-04-26 21:59:39+00:00)
Title: Fix data layer sequence tests to avoid leveldb contention and lock failures

On OSX (and potentially other platforms) the LevelDB lock check will fail if two data layers are setup to read from the same source. This PR fixes the contention by scoping the 1st data layer to be destroyed before instantiating the 2nd. The tests are otherwise unaffected.