]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os: FileStore: ctor should init all class vars
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Thu, 27 Jan 2011 16:34:53 +0000 (08:34 -0800)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Fri, 28 Jan 2011 10:42:59 +0000 (02:42 -0800)
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
src/os/FileStore.cc

index cc6338d2a3c22d36b3f699e08e12951a32238e77..43ed811e3dcd814319489fb462ba414cee76aac1 100644 (file)
@@ -363,6 +363,7 @@ done:
 
 FileStore::FileStore(const char *base, const char *jdev) :
   basedir(base), journalpath(jdev ? jdev:""),
+  fsid(0),
   btrfs(false), btrfs_trans_start_end(false), btrfs_clone_range(false),
   btrfs_snap_create(false),
   btrfs_snap_destroy(false),
@@ -370,6 +371,7 @@ FileStore::FileStore(const char *base, const char *jdev) :
   btrfs_wait_sync(false),
   ioctl_fiemap(false),
   fsid_fd(-1), op_fd(-1),
+  basedir_fd(-1), current_fd(-1),
   attrs(this), fake_attrs(false),
   collections(this), fake_collections(false),
   lock("FileStore::lock"),