]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: fix ictx_check pointer weirdness by using std::string
authorSage Weil <sage@newdream.net>
Sat, 21 Apr 2012 00:13:08 +0000 (17:13 -0700)
committerSage Weil <sage@newdream.net>
Sat, 21 Apr 2012 00:13:08 +0000 (17:13 -0700)
commitfb9fdf45b08aac50928d311832fd23a86c9b5f89
treebdeebea573d7a2eda94d8a938bd89b59c539612a
parent888a082f23974b1f7a63f302e29a326182e7dc41
librbd: fix ictx_check pointer weirdness by using std::string

I was seeing failures of LibRBD.TestIOToSnapshot where we would fail to
refresh after rollback, even though the snap existed.  I assume it is
because the std::string whose c_str() we were pointing to was reallocated.

Use a std::string here instead.

This code is weird.

Signed-off-by: Sage Weil <sage@newdream.net>
src/librbd.cc