]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common: ceph_ioprio_string_to_class always returns -EINVAL 2662/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:40:00 +0000 (20:40 +0200)
commit86926c6089d63014dd770b4bb61fc7aca3998542
tree7ba3187ea6924bfa21ebd60be5506a516251d52d
parent5f2eec5036a2910aca1e8ce2d94444d3ed0477df
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)

Conflicts:
src/test/Makefile.am
src/common/io_priority.cc
src/test/Makefile.am
src/test/common/test_io_priority.cc [new file with mode: 0644]