]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/ConfUtils: check key before actually normalizing 20370/head
authorPiotr Dałek <piotr.dalek@corp.ovh.com>
Thu, 8 Feb 2018 15:17:56 +0000 (16:17 +0100)
committerPiotr Dałek <piotr.dalek@corp.ovh.com>
Fri, 9 Feb 2018 07:57:19 +0000 (08:57 +0100)
commit989abb0b4c4bf761c39ac281ab3dd8e56b5b9fef
tree7024530134eceb1de6a704d4a7b75edbfb5813fb
parentf1cb504b2ac8e855970ef30a3d63b75af935e40f
common/ConfUtils: check key before actually normalizing

Key normalization involves some copying and strlens, and these are
expensive.
Check if key contain whitespaces, normalize it only when it does.

Signed-off-by: Piotr Dałek <piotr.dalek@corp.ovh.com>
src/common/ConfUtils.cc