]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cleanups
authorsageweil <sageweil@29311d96-e01e-0410-9327-a35deaab8ce9>
Wed, 8 Aug 2007 22:37:13 +0000 (22:37 +0000)
committersageweil <sageweil@29311d96-e01e-0410-9327-a35deaab8ce9>
Wed, 8 Aug 2007 22:37:13 +0000 (22:37 +0000)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1603 29311d96-e01e-0410-9327-a35deaab8ce9

branches/sage/mds/ebofs/Ebofs.cc
branches/sage/mds/ebofs/Journal.h

index 4b5ac572410d0fc1906a214c2c6624ad712b91fc..21070781c19765c422beee44b638f84df18f5269 100644 (file)
@@ -269,13 +269,13 @@ int Ebofs::mkfs()
 
   // create journal?
   if (journalfn) {
-    journal = new FileJournal(this, journalfn);
+    Journal *journal = new FileJournal(this, journalfn);
     if (journal->create() < 0) {
       dout(3) << "mount journal " << journalfn << " created failed" << endl;
-      delete journal;
     } else {
       dout(3) << "mount journal " << journalfn << " created" << endl;
     }
+    delete journal;
   }
 
   dout(2) << "mkfs: " << dev.get_device_name() << " "  << dev.get_num_blocks() << " blocks, " << nice_blocks(dev.get_num_blocks()) << endl;
index fb1983c22eafc1672954fd1a745cdb498e4bd10f..9bab0b7f3c1099bab0121a6dcc3523bc73ef039a 100644 (file)
@@ -34,6 +34,7 @@ public:
   virtual void close() = 0;
 
   // writes
+  virtual void make_writeable() = 0;
   virtual bool submit_entry(bufferlist& e, Context *oncommit) = 0;// submit an item
   virtual void commit_epoch_start() = 0;  // mark epoch boundary
   virtual void commit_epoch_finish() = 0; // mark prior epoch as committed (we can expire)