diff options
author | Samuel Just <sam.just@inktank.com> | 2012-12-10 17:39:13 -0800 |
---|---|---|
committer | Samuel Just <sam.just@inktank.com> | 2012-12-10 17:39:13 -0800 |
commit | 7eac96827e750bbbc23c15b69e2842a3e44267c2 (patch) | |
tree | f32cefe1da9b37eba0d74c4dd5312efd9977ac15 | |
parent | 12673c24f232fa86ba56a830929e0dbc8b3f5cb0 (diff) | |
download | ceph-7eac96827e750bbbc23c15b69e2842a3e44267c2.tar.gz |
HashIndex: init exists in col_split_level and reset_attr
Signed-off-by: Samuel Just <sam.just@inktank.com>
-rw-r--r-- | src/os/HashIndex.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os/HashIndex.cc b/src/os/HashIndex.cc index 705558bd154..167f3f1db03 100644 --- a/src/os/HashIndex.cc +++ b/src/os/HashIndex.cc @@ -60,7 +60,7 @@ int HashIndex::cleanup() { int HashIndex::reset_attr( const vector<string> &path) { - int exists; + int exists = 0; int r = path_exists(path, &exists); if (r < 0) return r; @@ -149,7 +149,7 @@ int HashIndex::col_split_level( // Make parent directories as needed while (*mkdirred < path.size()) { ++*mkdirred; - int exists; + int exists = 0; vector<string> creating_path(path.begin(), path.begin()+*mkdirred); r = to.path_exists(creating_path, &exists); if (r < 0) |