]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Fix libstriprados::remove, use strtoll insdead of strtol
authorDongmao Zhang <deanraccoon@gmail.com>
Wed, 10 Dec 2014 10:55:28 +0000 (18:55 +0800)
committerSebastien Ponce <sebastien.ponce@cern.ch>
Tue, 10 Mar 2015 08:02:31 +0000 (09:02 +0100)
Signed-off-by: Dongmao Zhang <deanraccoon@gmail.com>
(cherry picked from commit 78a15ee4c61fdadccb1921e861748400cc651862)

src/libradosstriper/RadosStriperImpl.cc

index fc08e1179d00e9528123c90759de6fc8da08b31e..e1dbded402d4c7c5b2494288b03cef9a92e2c001 100644 (file)
@@ -560,7 +560,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;