Project

General

Profile

Bug #6357

Updated by Loïc Dachary over 10 years ago

Because "equal != string::npos":https://github.com/ceph/ceph/blob/5216ed134b99e7dfd9e936c632b3ad2d01acd481/src/mon/OSDMonitor.cc#L2529 is inverted "const string value = i->substr(equal);":https://github.com/ceph/ceph/blob/5216ed134b99e7dfd9e936c632b3ad2d01acd481/src/mon/OSDMonitor.cc#L2533 
 will throw with 
 <pre> 
 std::__throw_out_of_range(char const*) 
 </pre> 
 when running 
 <pre> 
 ceph osd pool create foo 123 123 key1=value1 key2 key3=value3 
 </pre> 

Back