]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
hack around pg log ebofs thing
authorsage <sage@29311d96-e01e-0410-9327-a35deaab8ce9>
Mon, 4 Sep 2006 17:20:05 +0000 (17:20 +0000)
committersage <sage@29311d96-e01e-0410-9327-a35deaab8ce9>
Mon, 4 Sep 2006 17:20:05 +0000 (17:20 +0000)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@840 29311d96-e01e-0410-9327-a35deaab8ce9

ceph/osd/PG.cc

index 1b611716515ce70ec564f99bf0f3e40cd756595a..b9bb4853aeb9afc2283af0df0b8ce099ebc86d34 100644 (file)
@@ -947,6 +947,10 @@ void PG::append_log(ObjectStore::Transaction& t, PG::Log::Entry& logentry,
   // write entry on disk
   bufferlist bl;
   bl.append( (char*)&logentry, sizeof(logentry) );
+  if (1) {  // pad to 4k, until i fix ebofs reallocation crap.  FIXME.
+       bufferptr bp = new buffer(4096 - sizeof(logentry));
+       bl.push_back(bp);
+  }
   t.write( info.pgid, ondisklog.top, bl.length(), bl );
   
   // update block map?