From c8ec1fb747a23ae61dca7879e43e0aecefb4a113 Mon Sep 17 00:00:00 2001 From: Pavel Moravec Date: Fri, 28 Mar 2014 12:38:10 +0000 Subject: QPID-5651: [C++ broker] segfault in qpid::linearstore::journal::jdir::clear_dir when declaring durable queue git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1582730 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/linearstore/journal/jdir.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'qpid/cpp/src') diff --git a/qpid/cpp/src/qpid/linearstore/journal/jdir.cpp b/qpid/cpp/src/qpid/linearstore/journal/jdir.cpp index 36f180c21f..72b94d0098 100644 --- a/qpid/cpp/src/qpid/linearstore/journal/jdir.cpp +++ b/qpid/cpp/src/qpid/linearstore/journal/jdir.cpp @@ -104,6 +104,7 @@ jdir::clear_dir(const std::string& dirname/*, const std::string& DIR* dir = open_dir(dirname, "clear_dir", true); if (!dir && create_flag) { create_dir(dirname); + dir = open_dir(dirname, "clear_dir", true); } //#ifndef RHM_JOWRITE struct dirent* entry; -- cgit v1.2.1