From 61872e43cf39b28073a30cc4a8850b8397cee5f8 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Wed, 22 Oct 2014 10:58:45 +0200 Subject: [PATCH] JournalScanner.cc: reduce scope of local variable Signed-off-by: Danny Al-Gaaf --- src/tools/cephfs/JournalScanner.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/tools/cephfs/JournalScanner.cc b/src/tools/cephfs/JournalScanner.cc index e38f6694d81c6..3b79a773f10ee 100644 --- a/src/tools/cephfs/JournalScanner.cc +++ b/src/tools/cephfs/JournalScanner.cc @@ -132,8 +132,6 @@ int JournalScanner::scan_header() int JournalScanner::scan_events() { - int r; - uint64_t object_size = g_conf->mds_log_segment_size; if (object_size == 0) { // Default layout object size @@ -157,7 +155,7 @@ int JournalScanner::scan_events() // Read this journal segment bufferlist this_object; std::string const oid = obj_name(obj_offset); - r = io.read(oid, this_object, INT_MAX, 0); + int r = io.read(oid, this_object, INT_MAX, 0); // Handle absent journal segments if (r < 0) { -- 2.39.5