]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds/Server.cc: use string::compare() instead of ::find()
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 28 Jan 2016 10:17:12 +0000 (11:17 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 29 Jan 2016 20:51:17 +0000 (21:51 +0100)
commit1f262a1235faf6d41233470a5db8be74a388eb3e
tree5cf3b4091d779a1e146703a67a7aa10156575371
parentfd8f18ac35030b9c642bf68cde13ebb6c6400979
mds/Server.cc: use string::compare() instead of ::find()

Replace inefficient use of string::find() in conditions with
string::compare().

Changed checks in handle_set_vxattr() to call find/compare
on the 'name' only once.

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