]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw_rados.cc: use compare() instead of find()
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 13 Oct 2017 22:29:47 +0000 (00:29 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 25 Oct 2017 16:14:05 +0000 (18:14 +0200)
commite045962cc88b778bbde42acc4294c744c4587b15
tree67b8c773f255b71ff06a8656a94c7e2f4df4d14c
parente3f9fa9cc5a52f03efa21729902c25cd80b49789
rgw_rados.cc: use compare() instead of find()

Fix for:

[src/rgw/rgw_rados.cc:3752]: (performance) Inefficient usage of
 string::find() in condition; string::compare() would be faster.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/rgw/rgw_rados.cc