From patchwork Tue Jun 4 03:19:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yan, Zheng" X-Patchwork-Id: 2656361 Return-Path: X-Original-To: patchwork-ceph-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id F2E6E40077 for ; Tue, 4 Jun 2013 03:19:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756871Ab3FDDTa (ORCPT ); Mon, 3 Jun 2013 23:19:30 -0400 Received: from mga09.intel.com ([134.134.136.24]:3188 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754186Ab3FDDTa (ORCPT ); Mon, 3 Jun 2013 23:19:30 -0400 Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 03 Jun 2013 20:17:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.87,796,1363158000"; d="scan'208";a="323824460" Received: from zyan5-mobl.sh.intel.com ([10.239.13.101]) by orsmga001.jf.intel.com with ESMTP; 03 Jun 2013 20:19:28 -0700 From: "Yan, Zheng" To: ceph-devel@vger.kernel.org Cc: sage@inktank.com, greg@inktank.com, "Yan, Zheng" Subject: [PATCH 1/2] mds: initialize some member variables of MDCache Date: Tue, 4 Jun 2013 11:19:25 +0800 Message-Id: <1370315966-10363-1-git-send-email-zheng.z.yan@intel.com> X-Mailer: git-send-email 1.8.1.4 Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org From: "Yan, Zheng" I added some member variables to class MDCache, but forget to initialize them. Fixes: #5236 Signed-off-by: Yan, Zheng --- src/mds/MDCache.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index 8c17172..e2ecba8 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);