]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/PrimaryLogPG: use std::from_chars() to convert str to integer
authorKefu Chai <kchai@redhat.com>
Tue, 29 Jun 2021 06:39:35 +0000 (14:39 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 29 Jun 2021 06:54:08 +0000 (14:54 +0800)
commit8fe0305992efc4516f22066818ef6c5a037f7a8c
treeae9275605caca6fe8f2070cf3f3f1632fc2d0b99
parentf39d71ecaa90137ab7cc310d09a06c26cb6b2335
osd/PrimaryLogPG: use std::from_chars() to convert str to integer

* no need to create a temporary string for using strtoull()
* use std::from_chars() so it's consistent with its counterpart in
  in crimson.

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