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-04 13:08:20 -0700 |
commit | d7fb9b173a163eb2318af5832456f0f236f716fd (patch) | |
tree | 1e183af2a9d20b9438c087a610eb91916f63b848 | |
parent | bbdefe34875b99de8e11a50ffe925d5148634917 (diff) | |
download | ceph-d7fb9b173a163eb2318af5832456f0f236f716fd.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 b265f917a06..872b60c7360 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -147,6 +147,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; @@ -155,6 +156,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); |