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

new file rs

This commit is contained in:
dwight 2010-07-16 10:42:53 -04:00
parent 493ef0e11f
commit 2ac10b237e
5 changed files with 35 additions and 1 deletions

View File

@ -414,7 +414,7 @@ coreServerFiles = [ "util/message_server_port.cpp" ,
if GetOption( "asio" ) != None:
coreServerFiles += [ "util/message_server_asio.cpp" ]
serverOnlyFiles = Split( "db/query.cpp db/update.cpp db/introspect.cpp db/btree.cpp db/clientcursor.cpp db/tests.cpp db/repl.cpp db/repl/rs.cpp db/repl/consensus.cpp db/repl/rs_initiate.cpp db/repl/replset_commands.cpp db/repl/manager.cpp db/repl/health.cpp db/repl/heartbeat.cpp db/repl/rs_config.cpp db/oplog.cpp db/repl_block.cpp db/btreecursor.cpp db/cloner.cpp db/namespace.cpp db/matcher_covered.cpp db/dbeval.cpp db/dbwebserver.cpp db/dbhelpers.cpp db/instance.cpp db/client.cpp db/database.cpp db/pdfile.cpp db/cursor.cpp db/security_commands.cpp db/security.cpp util/miniwebserver.cpp db/storage.cpp db/queryoptimizer.cpp db/extsort.cpp db/mr.cpp s/d_util.cpp db/cmdline.cpp" )
serverOnlyFiles = Split( "db/query.cpp db/update.cpp db/introspect.cpp db/btree.cpp db/clientcursor.cpp db/tests.cpp db/repl.cpp db/repl/rs.cpp db/repl/consensus.cpp db/repl/rs_initiate.cpp db/repl/replset_commands.cpp db/repl/manager.cpp db/repl/health.cpp db/repl/heartbeat.cpp db/repl/rs_config.cpp db/repl/rs_sync.cpp db/oplog.cpp db/repl_block.cpp db/btreecursor.cpp db/cloner.cpp db/namespace.cpp db/matcher_covered.cpp db/dbeval.cpp db/dbwebserver.cpp db/dbhelpers.cpp db/instance.cpp db/client.cpp db/database.cpp db/pdfile.cpp db/cursor.cpp db/security_commands.cpp db/security.cpp util/miniwebserver.cpp db/storage.cpp db/queryoptimizer.cpp db/extsort.cpp db/mr.cpp s/d_util.cpp db/cmdline.cpp" )
serverOnlyFiles += [ "db/index.cpp" ] + Glob( "db/geo/*.cpp" )

View File

@ -1822,6 +1822,10 @@
RelativePath=".\repl\rs_config.cpp"
>
</File>
<File
RelativePath=".\repl\rs_sync.cpp"
>
</File>
<File
RelativePath=".\repl\rs_config.h"
>

View File

@ -459,6 +459,7 @@
<ClCompile Include="repl\heartbeat.cpp" />
<ClCompile Include="repl\manager.cpp" />
<ClCompile Include="repl\rs_initiate.cpp" />
<ClCompile Include="repl\rs_sync.cpp" />
<ClCompile Include="repl_block.cpp" />
<ClCompile Include="storage.cpp" />
<ClCompile Include="..\client\connpool.cpp" />

View File

@ -379,6 +379,9 @@
<ClCompile Include="..\s\d_split.cpp">
<Filter>sharding</Filter>
</ClCompile>
<ClCompile Include="repl\rs_sync.cpp">
<Filter>rs</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="repl\rs_config.h">

26
db/repl/rs_sync.cpp Normal file
View File

@ -0,0 +1,26 @@
/**
* 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/>.
*/
#include "pch.h"
#include "../client.h"
#include "../../client/dbclient.h"
#include "rs.h"
namespace mongo {
using namespace bson;
}