From 9127cd9d5e2e0dd95c41675944424f64e4cf5414 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 27 Jul 2010 12:53:20 -0700 Subject: [PATCH] mds: fix uninitialized LeaseStat for null lease ./include/encoding.h: In member function void Locker::issue_client_lease(CDentry*, client_t, ceph::bufferlist&, utime_t, Session*): ./include/encoding.h:80: warning: e.LeaseStat::duration_ms may be used uninitialized in this function --- src/mds/Locker.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mds/Locker.cc b/src/mds/Locker.cc index 3abd048145522..6bdab93eac37b 100644 --- a/src/mds/Locker.cc +++ b/src/mds/Locker.cc @@ -2250,6 +2250,8 @@ void Locker::issue_client_lease(CDentry *dn, client_t client, // null lease LeaseStat e; e.mask = 0; + e.seq = 0; + e.duration_ms = 0; ::encode(e, bl); dout(20) << "issue_client_lease no/null lease on " << *dn << dendl; } -- 2.39.5