From 4b1786e9599c5770376e8809bfbce7d74426640e Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Thu, 23 Oct 2014 12:03:19 -0700 Subject: [PATCH] Fix SIGSEGV when declaring Arena after ScopedArenaIterator --- db/db_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/db_test.cc b/db/db_test.cc index 968ea7521..06d0241ee 100644 --- a/db/db_test.cc +++ b/db/db_test.cc @@ -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 {