osd: use derr (instead of cerr) for convertfs

This will appear in the log *and* stderr (if we're running in the
foreground).

Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Sage Weil 2012-06-19 10:12:40 -07:00
parent 74658dfa2f
commit f3f144adf1

View File

@ -270,13 +270,13 @@ int OSD::do_convertfs(ObjectStore *store)
derr << "collection " << *i << " updated" << dendl;
}
}
cerr << "All collections up to date, updating version stamp..." << std::endl;
derr << "All collections up to date, updating version stamp..." << dendl;
r = store->update_version_stamp();
if (r < 0)
return r;
store->sync_and_flush();
store->sync();
cerr << "Version stamp updated, done!" << std::endl;
derr << "Version stamp updated, done with upgrade!" << dendl;
return store->umount();
}