From 694a4f0f164a57a8a199adb95c02609f51bc3037 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sat, 29 Sep 2012 01:29:49 -0700 Subject: [PATCH] mds: init atid in context CID 717236: Uninitialized scalar field (UNINIT_CTOR) At (2): Non-static class member "atid" is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Sage Weil --- src/mds/MDCache.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mds/MDCache.cc b/src/mds/MDCache.cc index 3662a37dc23b6..7a5c0f5407db6 100644 --- a/src/mds/MDCache.cc +++ b/src/mds/MDCache.cc @@ -7602,7 +7602,7 @@ class C_MDC_AnchorPrepared : public Context { bool add; public: version_t atid; - C_MDC_AnchorPrepared(MDCache *c, CInode *i, bool a) : cache(c), in(i), add(a) {} + C_MDC_AnchorPrepared(MDCache *c, CInode *i, bool a) : cache(c), in(i), add(a), atid(0) {} void finish(int r) { cache->_anchor_prepared(in, atid, add); } -- 2.39.5