Fix SIGSEGV when declaring Arena after ScopedArenaIterator

main
Igor Canadi 10 years ago
parent 05b2e60ddd
commit 4b1786e959
  1. 2
      db/db_test.cc

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

Loading…
Cancel
Save