]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: initialize some member variables of MDCache
authorYan, Zheng <zheng.z.yan@intel.com>
Tue, 4 Jun 2013 03:19:25 +0000 (11:19 +0800)
committerSage Weil <sage@inktank.com>
Tue, 4 Jun 2013 03:52:01 +0000 (20:52 -0700)
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>
src/mds/MDCache.cc

index f0a2cc2a7f071dec7c1928dbd2217b0d99c8ffa0..3d879b2aad59fbc6de02fe2dbbc6b8cc14cf2a2f 100644 (file)
@@ -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);