]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osdc/mds: fixup pos parameter in the journaler 10200/head
authorhuanwen ren <rhwlyw@163.com>
Fri, 8 Jul 2016 07:54:36 +0000 (15:54 +0800)
committerGitHub <noreply@github.com>
Fri, 8 Jul 2016 07:54:36 +0000 (15:54 +0800)
the type of write_pos\read_pos\expire_pos\trimming_pos is uint64_t,
change the "pos parameter" to uint64_t

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
src/osdc/Journaler.h

index c37cfce489756e97d682082d30e4fce33be611ac..b1983bbc1e5c3efdaf153ef1f4a5d798795e3d95 100644 (file)
@@ -456,11 +456,11 @@ public:
   void set_layout(file_layout_t const *l);
   void set_readonly();
   void set_writeable();
-  void set_write_pos(int64_t p) {
+  void set_write_pos(uint64_t p) {
     lock_guard l(lock);
     prezeroing_pos = prezero_pos = write_pos = flush_pos = safe_pos = p;
   }
-  void set_read_pos(int64_t p) {
+  void set_read_pos(uint64_t p) {
     lock_guard l(lock);
     // we can't cope w/ in-progress read right now.
     assert(requested_pos == received_pos);
@@ -468,11 +468,11 @@ public:
     read_buf.clear();
   }
   uint64_t append_entry(bufferlist& bl);
-  void set_expire_pos(int64_t ep) {
+  void set_expire_pos(uint64_t ep) {
       lock_guard l(lock);
       expire_pos = ep;
   }
-  void set_trimmed_pos(int64_t p) {
+  void set_trimmed_pos(uint64_t p) {
       lock_guard l(lock);
       trimming_pos = trimmed_pos = p;
   }