]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Backport the merge commit of branch 'wip-journal-header' of git://github.com/XinzeChi...
authorSage Weil <sage@redhat.com>
Fri, 1 May 2015 16:22:01 +0000 (09:22 -0700)
committerDavid Zafman <dzafman@redhat.com>
Thu, 25 Feb 2016 20:33:31 +0000 (12:33 -0800)
(cherry picked from commit 8d596bfa24c9c3e2aadbb87494284cb5fd824e55)

Conflicts:
src/os/FileJournal.cc (trivial)
src/os/FileJournal.h (trivial)

Renamed write_header() to write_header_sync() in a merge
Signed-off-by: David Zafman <dzafman@redhat.com>
src/os/FileJournal.cc
src/os/FileJournal.h

index 1b04d8e27f671a0038a02c96294b6c3bfba953ea..49f4f507a9600a401dac8fafb8ad7d53b7cab95c 100644 (file)
@@ -649,9 +649,8 @@ void FileJournal::stop_writer()
   }
   write_thread.join();
  
-  // write jouranl header right now, so that
-  // committed_up_to in journal header is newer enough.
-  write_header();
+  // write journal header now so that we have less to replay on remount
+  write_header_sync();
 
 #ifdef HAVE_LIBAIO
   // stop aio completeion thread *after* writer thread has stopped
@@ -737,7 +736,7 @@ bufferptr FileJournal::prepare_header()
   return bp;
 }
 
-void FileJournal::write_header()
+void FileJournal::write_header_sync()
 {
   Mutex::Locker locker(write_lock);
   must_write_header = true;
index 8aa04a9d93ac45909bb90a6410261408986caf5c..430f773c83d828f98974d3efdd3268e066ba4b9f 100644 (file)
@@ -414,7 +414,7 @@ private:
     return full_state != FULL_NOTFULL && !write_stop;
   }
 
-  void write_header();
+  void write_header_sync();
 
   void set_wait_on_full(bool b) { wait_on_full = b; }