]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
buffer: make release() private
authorSage Weil <sage@inktank.com>
Wed, 8 Aug 2012 15:09:59 +0000 (08:09 -0700)
committerSage Weil <sage@inktank.com>
Wed, 8 Aug 2012 15:09:59 +0000 (08:09 -0700)
This should only be called by ~ptr or when we are replacing the current
target with something new.  It is not suitable for external consumption
Because it doesn't reset length and offset.

Signed-off-by: Sage Weil <sage@inktank.com>
src/include/buffer.h

index 17402d35507254855422023130f7474b5064238c..b2f1325eef7193b8d8d95672710c4c0cdb9d905d 100644 (file)
@@ -146,6 +146,8 @@ public:
     raw *_raw;
     unsigned _off, _len;
 
+    void release();
+
   public:
     ptr() : _raw(0), _off(0), _len(0) {}
     ptr(raw *r);
@@ -162,7 +164,6 @@ public:
 
     raw *clone();
     void swap(ptr& other);
-    void release();
 
     // misc
     bool at_buffer_head() const { return _off == 0; }