mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
hmmm
This commit is contained in:
parent
a2ab816f8e
commit
9f7f0be204
@ -465,7 +465,7 @@ namespace mongo {
|
||||
#endif
|
||||
|
||||
{
|
||||
const char * foo = strstr( versionString , "." ) + 1;
|
||||
const char * foo = strchr( versionString , '.' ) + 1;
|
||||
int bar = atoi( foo );
|
||||
if ( ( 2 * ( bar / 2 ) ) != bar ){
|
||||
cout << "****\n"
|
||||
|
@ -137,8 +137,8 @@ namespace mongo {
|
||||
const char *ns = r.getns();
|
||||
|
||||
if ( r.isShardingEnabled() &&
|
||||
strstr( ns , ".system.indexes" ) == strstr( ns , "." ) &&
|
||||
strstr( ns , "." ) ){
|
||||
strstr( ns , ".system.indexes" ) == strchr( ns , '.' ) &&
|
||||
strchr( ns , '.' ) ) {
|
||||
log(1) << " .system.indexes write for: " << ns << endl;
|
||||
handleIndexWrite( op , r );
|
||||
return;
|
||||
|
@ -28,13 +28,13 @@ namespace mongo {
|
||||
{}
|
||||
|
||||
string MiniWebServer::parseURL( const char * buf ) {
|
||||
const char * urlStart = strstr( buf , " " );
|
||||
const char * urlStart = strchr( buf , ' ' );
|
||||
if ( ! urlStart )
|
||||
return "/";
|
||||
|
||||
urlStart++;
|
||||
|
||||
const char * end = strstr( urlStart , " " );
|
||||
const char * end = strchr( urlStart , ' ' );
|
||||
if ( ! end ) {
|
||||
end = strchr( urlStart , '\r' );
|
||||
if ( ! end ) {
|
||||
@ -82,7 +82,7 @@ namespace mongo {
|
||||
}
|
||||
|
||||
string MiniWebServer::parseMethod( const char * headers ) {
|
||||
const char * end = strstr( headers , " " );
|
||||
const char * end = strchr( headers , ' ' );
|
||||
if ( ! end )
|
||||
return "GET";
|
||||
return string( headers , (int)(end-headers) );
|
||||
|
Loading…
Reference in New Issue
Block a user