]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
tools: fix wrong overload of "<" operator
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 24 May 2016 11:33:56 +0000 (19:33 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Sat, 18 Jun 2016 03:35:47 +0000 (11:35 +0800)
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/tools/radosacl.cc

index 1c482ed7edd2477db53936eea3616996404a4eae..d630d6c3c6652c6798415c5a6ee1591b521d8d56 100644 (file)
@@ -52,7 +52,7 @@ typedef __u32 ACLFlags;
 
 inline bool operator<(const ACLID& l, const ACLID& r)
 {
-  return (memcmp(&l, &r, ID_SIZE) > 0);
+  return (memcmp(&l, &r, ID_SIZE) < 0);
 }
 
 struct ACLPair {