There is no need to specialize the argument into stringstream. It is
replaced by a ostream which is convenient to display errors directly to
cerr if appropriate.
Signed-off-by: Loic Dachary <loic@dachary.org>
}
int OSDMap::build_simple_crush_map(CephContext *cct, CrushWrapper& crush,
- int nosd, stringstream *ss)
+ int nosd, ostream *ss)
{
crush.create();
int OSDMap::build_simple_crush_map_from_conf(CephContext *cct,
CrushWrapper& crush,
- stringstream *ss)
+ ostream *ss)
{
const md_config_t *conf = cct->_conf;
int num_osd, int pg_bits, int pgp_bits);
static int _build_crush_types(CrushWrapper& crush);
static int build_simple_crush_map(CephContext *cct, CrushWrapper& crush,
- int num_osd, stringstream *ss);
+ int num_osd, ostream *ss);
static int build_simple_crush_map_from_conf(CephContext *cct,
CrushWrapper& crush,
- stringstream *ss);
+ ostream *ss);
bool crush_ruleset_in_use(int ruleset) const;