]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
buffer: enable tracking of calls to c_str()
authorJosh Durgin <josh.durgin@inktank.com>
Fri, 18 Oct 2013 15:23:40 +0000 (08:23 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Sat, 23 Nov 2013 00:14:03 +0000 (16:14 -0800)
commit75d4a72086bcfcab5c0d6834e72cbc6e473c801e
treea38671b7582f0efca0325a2ae6efd8ca4ce19a97
parent445fb183906a56e3b412537f3756c38af667cb25
buffer: enable tracking of calls to c_str()

Track buffer::ptr::c_str() to catch internal calls that use it, like
buffer::ptr::cmp(). buffer::list::c_str() will be captured by this as
well, since it will do a final buffer::ptr::c_str() and possibly
several more if it needs to rebuild into a single raw buffer.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/common/buffer.cc
src/include/buffer.h