]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd: pass the the cause by string_view 37099/head
authorKefu Chai <kchai@redhat.com>
Fri, 11 Sep 2020 08:43:37 +0000 (16:43 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 11 Sep 2020 08:59:55 +0000 (16:59 +0800)
commit23e963bb1ac4d289a6866f717e955454312b9255
treed6f60e51fe6cd38550153e1781f9377a16a54c0d
parent371364532445ad5dd68559133c855b1bc2c98002
crimson/osd: pass the the cause by string_view

in future, string_view can be used almost every where string can be
used. in this change, `const char*` is instead passed to the constructor
of system_error, as we can ensure that the string_view instances are
always constructed from a `const char*` ended with `\0`.

we need this change for two reasons:

* better performance
* prefer for the world where string_view rules.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/osd/recovery_backend.cc
src/crimson/osd/recovery_backend.h