summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-03-01 16:37:36 +0100
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>2013-03-01 16:37:36 +0100
commit3c96faa41a70a59d9cce0996bb570a5c28d139dc (patch)
tree93e6fa3cd49ba5fff1676076238aa92bf372b565
parentb8711633e948a0839dcc673d9b07c6c35c69a9c1 (diff)
downloadceph-3c96faa41a70a59d9cce0996bb570a5c28d139dc.tar.gz
os/IndexManager.cc: reduce scope of 'int r' in IndexManager::build_index()
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
-rw-r--r--src/os/IndexManager.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/IndexManager.cc b/src/os/IndexManager.cc
index 11bf5c18172..412721a04c8 100644
--- a/src/os/IndexManager.cc
+++ b/src/os/IndexManager.cc
@@ -81,9 +81,9 @@ int IndexManager::init_index(coll_t c, const char *path, uint32_t version) {
}
int IndexManager::build_index(coll_t c, const char *path, Index *index) {
- int r;
if (upgrade) {
// Need to check the collection generation
+ int r;
uint32_t version = 0;
r = get_version(path, &version);
if (r < 0)