]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
memstore: write fsid to fsid not fs_fsid 19462/head
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 13 Dec 2017 03:58:01 +0000 (19:58 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Wed, 13 Dec 2017 05:07:29 +0000 (21:07 -0800)
Fixes: http://tracker.ceph.com/issues/20736
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/os/memstore/MemStore.cc

index cc3425c14c1c2095403188dda276a95ecdb1fbcc..f227e954031926bb0a8b25b924abd08f12cb9791 100644 (file)
@@ -172,14 +172,14 @@ int MemStore::_load()
 
 void MemStore::set_fsid(uuid_d u)
 {
-  int r = write_meta("fs_fsid", stringify(u));
+  int r = write_meta("fsid", stringify(u));
   assert(r >= 0);
 }
 
 uuid_d MemStore::get_fsid()
 {
   string fsid_str;
-  int r = read_meta("fs_fsid", &fsid_str);
+  int r = read_meta("fsid", &fsid_str);
   assert(r >= 0);
   uuid_d uuid;
   bool b = uuid.parse(fsid_str.c_str());
@@ -190,12 +190,12 @@ uuid_d MemStore::get_fsid()
 int MemStore::mkfs()
 {
   string fsid_str;
-  int r = read_meta("fs_fsid", &fsid_str);
+  int r = read_meta("fsid", &fsid_str);
   if (r == -ENOENT) {
     uuid_d fsid;
     fsid.generate_random();
     fsid_str = stringify(fsid);
-    r = write_meta("fs_fsid", fsid_str);
+    r = write_meta("fsid", fsid_str);
     if (r < 0)
       return r;
     dout(1) << __func__ << " new fsid " << fsid_str << dendl;