Fix SIGSEGV when declaring Arena after ScopedArenaIterator

This commit is contained in:
Igor Canadi 2014-10-23 12:03:19 -07:00
parent 05b2e60ddd
commit 4b1786e959

View File

@ -807,8 +807,8 @@ class DBTest {
}
std::string AllEntriesFor(const Slice& user_key, int cf = 0) {
ScopedArenaIterator iter;
Arena arena;
ScopedArenaIterator iter;
if (cf == 0) {
iter.set(dbfull()->TEST_NewInternalIterator(&arena));
} else {