]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
kv: fix string ctor usage 6511/head
authorSage Weil <sage@redhat.com>
Mon, 9 Nov 2015 18:40:41 +0000 (13:40 -0500)
committerSage Weil <sage@redhat.com>
Mon, 9 Nov 2015 18:40:41 +0000 (13:40 -0500)
commit9689fe0ae0cbb065debc0e461e97719478985fee
tree5d11c6d5bd89b8b5d1c1931765382307ae7f84b6
parent6ab35330e6d2710984d0bb13e4aadda0400ec159
kv: fix string ctor usage

When constructing a string from a char* there is only a single
length argument, no offset.  The 3 argument variant we were using
was converting to a std::string first (an prematurely terminating
on \0).

Signed-off-by: Sage Weil <sage@redhat.com>
src/kv/KineticStore.cc
src/kv/LevelDBStore.cc
src/kv/RocksDBStore.cc