]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
DBObjectMap::init: initialize seq and v to correct values
authorSamuel Just <sam.just@inktank.com>
Tue, 29 May 2012 20:03:02 +0000 (13:03 -0700)
committerSamuel Just <sam.just@inktank.com>
Tue, 5 Jun 2012 23:09:50 +0000 (16:09 -0700)
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/os/DBObjectMap.cc

index 0889de6c27a5e77ec21fb831bff324cf64037c5f..c40d14c61cf14dafbe98a30b6073a532df4818bc 100644 (file)
@@ -1024,6 +1024,10 @@ int DBObjectMap::init(bool do_upgrade)
          return r;
       }
     }
+  } else {
+    // New store
+    state.v = 1;
+    state.seq = 1;
   }
   dout(20) << "(init)dbobjectmap: seq is " << state.seq << dendl;
   return 0;