]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: fix OSDCap parser on old boost/spirit 3714/head
authorKefu Chai <kchai@redhat.com>
Thu, 12 Feb 2015 05:02:45 +0000 (13:02 +0800)
committerKefu Chai <tchaikov@gmail.com>
Thu, 12 Feb 2015 10:08:02 +0000 (18:08 +0800)
commitb9b586831c64cc699850c3c2fad0c17d576e1e97
tree63b53f70dfe5e31988f9c5ad9763cc34aa6eaed2
parentf53daa1c066f4201cb463c156968d3d39f415f9c
osd: fix OSDCap parser on old boost/spirit

* on boost 1.41, the ascii::space skipper fails to skip the spaces at the
  beginning of the parsed string, so as a workaround we replace the `lit(' ')`
  in grammar spec with `ascii::blank`. this also simplifies the grammar
  a little bit.

Fixes: #10757
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/osd/OSDCap.cc