]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Fix ReplicatedPG do_xattr_cmp_u64 3545/head
authorDongmao Zhang <deanraccoon@gmail.com>
Fri, 30 Jan 2015 03:20:50 +0000 (11:20 +0800)
committerDongmao Zhang <deanraccoon@gmail.com>
Fri, 30 Jan 2015 03:20:50 +0000 (11:20 +0800)
commit3373249974e7e280df48bc16045748b77fef7942
treeba63bea82d299a62b31bfc0126f53f8aa22f7d21
parent7e5e1ea1a51637de1c9a37039f21d88aee43ee83
Fix ReplicatedPG do_xattr_cmp_u64

1. bufferlist.c_str() will return a string which is longer than its real length.
This could cause an error result from do_xattr_cmp_u64. So use
std::string to receive the xattr
2. s/atoll/strtoull

Signed-off-by: Dongmao Zhang <deanraccoon@gmail.com>
src/osd/ReplicatedPG.cc