as we don't need to mimic the behavior of classic OSD, what we need to
to fulfill the needs of ceph cli. see `admin_socket()` in
`src/pybind/ceph_daemon.py`, which sends a `\0` to indicate the end of a
command.
Signed-off-by: Kefu Chai <kchai@redhat.com>
size_t consumed = 0;
for (auto c : buf) {
consumed++;
- if (c == '\0' || c == '\n') {
+ if (c == '\0') {
buf.trim_front(consumed);
return seastar::make_ready_future<consumption_result_type>(
consumption_result_type::stop_consuming_type(std::move(buf)));