From: Danny Al-Gaaf Date: Fri, 1 Mar 2013 15:37:36 +0000 (+0100) Subject: os/IndexManager.cc: reduce scope of 'int r' in IndexManager::build_index() X-Git-Tag: v0.59~54^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3c96faa41a70a59d9cce0996bb570a5c28d139dc;p=ceph.git os/IndexManager.cc: reduce scope of 'int r' in IndexManager::build_index() Signed-off-by: Danny Al-Gaaf --- diff --git a/src/os/IndexManager.cc b/src/os/IndexManager.cc index 11bf5c18172a..412721a04c87 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)