Skip to content

Commit

Permalink
Merge pull request #5875 from Aran85/parsemetadatakey
Browse files Browse the repository at this point in the history
rgw:modify the conditional statement in parse_metadata_key method.
  • Loading branch information
oritwas committed Oct 28, 2015
2 parents e3fdc3a + ffad282 commit e3921a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rgw/rgw_metadata.cc
Expand Up @@ -275,10 +275,10 @@ void RGWMetadataManager::parse_metadata_key(const string& metadata_key, string&
int pos = metadata_key.find(':');
if (pos < 0) {
type = metadata_key;
} else {
type = metadata_key.substr(0, pos);
entry = metadata_key.substr(pos + 1);
}

type = metadata_key.substr(0, pos);
entry = metadata_key.substr(pos + 1);
}

int RGWMetadataManager::find_handler(const string& metadata_key, RGWMetadataHandler **handler, string& entry)
Expand Down

0 comments on commit e3921a8

Please sign in to comment.