]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
bufferlist: cleanup semantical wrong for bufferlist::append 12247/head
authorYankunLi <lioveni99@gmail.com>
Thu, 1 Dec 2016 06:12:03 +0000 (14:12 +0800)
committerYankunLi <lioveni99@gmail.com>
Thu, 1 Dec 2016 09:11:46 +0000 (17:11 +0800)
commit8e1066e62a97c98de1d01ddba6decd73b155400f
treeaf5a9067ebc659465080fd593d2f1e4ed55e5e43
parent63b42dd3eeecb0798f317e15de89d5c4b0de2309
bufferlist: cleanup semantical wrong for bufferlist::append

this is just semantically wrong. as append_buffer.set_offset() was
called, so append_buffer._off is always 0. in other words,
append_buffer.length() == append_buffer.end(). using append_buffer.
length() is better in here.

Signed-off-by: Yankun Li <lioveni99@gmail.com>
src/common/buffer.cc