0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00

fix mac 64-bit

This commit is contained in:
Eliot Horowitz 2009-11-03 12:13:42 -05:00
parent 6d5e43755d
commit 05712a3965
4 changed files with 41 additions and 7 deletions

View File

@ -279,6 +279,7 @@ commonFiles += [ "util/background.cpp" , "util/mmap.cpp" , "util/sock.cpp" , "
"util/assert_util.cpp" , "util/httpclient.cpp" , "util/md5main.cpp" , "util/base64.cpp" ]
commonFiles += Glob( "util/*.c" )
commonFiles += Split( "client/connpool.cpp client/dbclient.cpp client/model.cpp client/parallel.cpp" )
commonFiles += [ "s/d_util.cpp" ]
commonFiles += [ "scripting/engine.cpp" ]
#mmap stuff
@ -954,7 +955,6 @@ elif not onlyServer:
shell32BitFiles = coreShellFiles
for f in allClientFiles:
shell32BitFiles.append( "32bit/" + str( f ) )
shellEnv.VariantDir( "32bit" , "." )
else:
shellEnv.Prepend( LIBPATH=[ "." ] )

View File

@ -497,9 +497,4 @@ namespace mongo {
return true;
}
void checkShardVersion( DBClientBase & conn , const string& ns , bool authoritative = false ){
// no-op in mongod
}
}

36
s/d_util.cpp Normal file
View File

@ -0,0 +1,36 @@
// util.cpp
/**
* Copyright (C) 2008 10gen Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/**
these are commands that live in mongod
mostly around shard management and checking
*/
#include "stdafx.h"
#include "util.h"
using namespace std;
namespace mongo {
void checkShardVersion( DBClientBase & conn , const string& ns , bool authoritative ){
// no-op in mongod
}
}

View File

@ -16,7 +16,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "stdafx.h"
#pragma once
#include "../stdafx.h"
#include "../client/dbclient.h"
/**
some generic sharding utils that can be used in mongod or mongos