From: Dongmao Zhang Date: Wed, 10 Dec 2014 10:55:28 +0000 (+0800) Subject: Fix libstriprados::remove, use strtoll insdead of strtol X-Git-Tag: v0.91~52^2~13^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F3137%2Fhead;p=ceph.git Fix libstriprados::remove, use strtoll insdead of strtol Signed-off-by: Dongmao Zhang --- diff --git a/src/libradosstriper/RadosStriperImpl.cc b/src/libradosstriper/RadosStriperImpl.cc index 35c1c7ae27c6d..96179ca589352 100644 --- a/src/libradosstriper/RadosStriperImpl.cc +++ b/src/libradosstriper/RadosStriperImpl.cc @@ -573,7 +573,7 @@ int libradosstriper::RadosStriperImpl::remove(const std::string& soid) std::string err; // this intermediate string allows to add a null terminator before calling strtol std::string strsize(bl2.c_str(), bl2.length()); - uint64_t size = strict_strtol(strsize.c_str(), 10, &err); + uint64_t size = strict_strtoll(strsize.c_str(), 10, &err); if (!err.empty()) { lderr(cct()) << XATTR_SIZE << " : " << err << dendl;