]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common: ceph_ioprio_string_to_class always returns -EINVAL 2661/head
authorLoic Dachary <loic-201408@dachary.org>
Tue, 7 Oct 2014 12:06:38 +0000 (14:06 +0200)
committerLoic Dachary <loic-201408@dachary.org>
Tue, 7 Oct 2014 18:30:26 +0000 (20:30 +0200)
commit7c4e278a1e12f8ecf4aca2858336fe367569340c
treef139176d1263e3c7c9c4e0a9bc90386674a1b91e
parent822b088e4299c788d5ffcd948747562c9417327c
common: ceph_ioprio_string_to_class always returns -EINVAL

The l string is always empty because std::transform needs a
pre-allocated string. Replace with the in-place version. Add unit tests.

http://tracker.ceph.com/issues/9677 Fixes: #9677

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
(cherry picked from commit 3535b7aba3df8b54fa5117b8a9c2f52b8f0f118b)
src/common/io_priority.cc
src/test/Makefile.am
src/test/common/test_io_priority.cc [new file with mode: 0644]