Merge pull request #887 from jdurgin/wip-peek-meta

osd: read into correct variable for magic string

Reviewed-by: Sage Weil <sage@inktank.com>
This commit is contained in:
Sage Weil 2013-12-02 17:36:32 -08:00
commit 283de99c74

View File

@ -731,7 +731,7 @@ int OSD::peek_meta(ObjectStore *store, std::string& magic,
{
string val;
int r = store->read_meta("magic", &magic);
int r = store->read_meta("magic", &val);
if (r < 0)
return r;
magic = val;