diff options
author | Yan, Zheng <zheng.z.yan@intel.com> | 2013-06-04 11:19:25 +0800 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-06-03 20:52:01 -0700 |
commit | 2d655bde8de9ad255d63718768558399cacd7068 (patch) | |
tree | 0834d0fc0b7720ab51ef970872c8d25d69d0ba77 | |
parent | 27f82ce3b4624115b47d659a3f1eacb29de249e3 (diff) | |
download | ceph-2d655bde8de9ad255d63718768558399cacd7068.tar.gz |
mds: initialize some member variables of MDCache
I added some member variables to class MDCache, but forget to
initialize them.
Fixes: #5236
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
-rw-r--r-- | src/mds/MDCache.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index f0a2cc2a7f0..3d879b2aad5 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -144,6 +144,7 @@ MDCache::MDCache(MDS *m) (0.9 *(g_conf->osd_max_write_size << 20)); discover_last_tid = 0; + open_ino_last_tid = 0; find_ino_peer_last_tid = 0; last_cap_id = 0; @@ -152,6 +153,10 @@ MDCache::MDCache(MDS *m) client_lease_durations[1] = 30.0; client_lease_durations[2] = 300.0; + resolves_pending = false; + rejoins_pending = false; + cap_imports_num_opening = 0; + opening_root = open = false; lru.lru_set_max(g_conf->mds_cache_size); lru.lru_set_midpoint(g_conf->mds_cache_mid); |