Skip to content

Commit

Permalink
more cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
erh committed Jun 11, 2010
1 parent 951ac0f commit e9f8008
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions s/d_logic.cpp
Expand Up @@ -51,7 +51,7 @@ namespace mongo {

boost::thread_specific_ptr<OID> clientServerIds;

unsigned long long getVersion( BSONElement e , string& errmsg ){
unsigned long long extractVersion( BSONElement e , string& errmsg ){
if ( e.eoo() ){
errmsg = "no version";
return 0;
Expand Down Expand Up @@ -141,7 +141,7 @@ namespace mongo {
}
}

unsigned long long version = getVersion( cmdObj["version"] , errmsg );
unsigned long long version = extractVersion( cmdObj["version"] , errmsg );
if ( errmsg.size() ){
return false;
}
Expand Down Expand Up @@ -342,7 +342,7 @@ namespace mongo {
}


unsigned long long newVersion = getVersion( cmdObj["newVersion"] , errmsg );
unsigned long long newVersion = extractVersion( cmdObj["newVersion"] , errmsg );
if ( newVersion == 0 ){
errmsg = "have to specify new version number";
return false;
Expand Down

0 comments on commit e9f8008

Please sign in to comment.