Skip to content

Commit ce04ab3

Browse files
committed
Revert "SERVER-11332 multi host query from fastest host using thread pools"
This reverts commit 03f0d9c
1 parent 03f0d9c commit ce04ab3

File tree

6 files changed

+16
-1518
lines changed

6 files changed

+16
-1518
lines changed

src/mongo/SConscript

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ env.Library('coreshard', ['s/distlock.cpp',
713713
's/shard.cpp',
714714
's/shardkey.cpp'],
715715
LIBDEPS=['s/base',
716-
's/cluster_ops_impl']);
716+
's/cluster_op_impl']);
717717

718718
mongosLibraryFiles = [
719719
"s/interrupt_status_mongos.cpp",
@@ -742,7 +742,7 @@ env.Library( "mongoscore",
742742
LIBDEPS=['db/auth/authmongos',
743743
'db/fts/ftsmongos',
744744
'db/query/lite_parsed_query',
745-
's/cluster_ops',
745+
's/cluster_write_ops',
746746
's/cluster_write_op_conversion',
747747
's/upgrade',
748748
] )
@@ -1057,8 +1057,8 @@ test = testEnv.Install(
10571057
"testframework",
10581058
"gridfs",
10591059
"s/upgrade",
1060-
"s/cluster_ops",
1061-
"s/cluster_ops_impl",
1060+
"s/cluster_write_ops",
1061+
"s/cluster_op_impl",
10621062
"mocklib",
10631063
"db/exec/mock_stage",
10641064
"$BUILD_DIR/mongo/db/auth/authmocks",

src/mongo/base/error_codes.err

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ error_code("IndexOptionsConflict", 85 )
8888
error_code("IndexKeySpecsConflict", 86 )
8989
error_code("CannotSplit", 87)
9090
error_code("SplitFailed", 88)
91-
error_code("NetworkTimeout", 89)
9291

9392
# Non-sequential error codes (for compatibility only)
9493
error_code("NotMaster", 10107) #this comes from assert_util.h
@@ -100,7 +99,7 @@ error_code("KeyTooLong", 17280);
10099
error_code("BackgroundOperationInProgressForDatabase", 12586);
101100
error_code("BackgroundOperationInProgressForNamespace", 12587);
102101

103-
error_class("NetworkError", ["HostUnreachable", "HostNotFound", "NetworkTimeout"])
102+
error_class("NetworkError", ["HostUnreachable", "HostNotFound"])
104103
error_class("Interruption", ["Interrupted", "InterruptedAtShutdown", "ExceededTimeLimit"])
105104
error_class("IndexCreationError", ["CannotCreateIndex", "IndexOptionsConflict",
106105
"IndexKeySpecsConflict", "IndexAlreadyExists"])

src/mongo/s/SConscript

Lines changed: 11 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -207,25 +207,18 @@ env.CppUnitTest(
207207
]
208208
)
209209

210-
#
211-
# State and execution of operations across multiple hosts
212-
#
213-
# This functionality is self-contained and independent of any network or system-level
214-
# code.
215-
#
210+
# Cluster write op state and execution
216211
env.Library(
217-
target='cluster_ops',
212+
target='cluster_write_ops',
218213
source=[
219214
'write_ops/write_op.cpp',
220215
'write_ops/batch_write_op.cpp',
221216
'write_ops/batch_write_exec.cpp',
222217
'write_ops/config_coordinator.cpp',
223-
'multi_host_query.cpp'
224218
],
225219
LIBDEPS=[
226220
'$BUILD_DIR/mongo/bson',
227221
'batch_write_types',
228-
'$BUILD_DIR/mongo/synchronization'
229222
],
230223
)
231224

@@ -236,7 +229,7 @@ env.CppUnitTest(
236229
],
237230
LIBDEPS=[
238231
'base',
239-
'cluster_ops',
232+
'cluster_write_ops',
240233
'$BUILD_DIR/mongo/db/common',
241234
]
242235
)
@@ -248,7 +241,7 @@ env.CppUnitTest(
248241
],
249242
LIBDEPS=[
250243
'base',
251-
'cluster_ops',
244+
'cluster_write_ops',
252245
'$BUILD_DIR/mongo/db/common',
253246
]
254247
)
@@ -260,7 +253,7 @@ env.CppUnitTest(
260253
],
261254
LIBDEPS=[
262255
'base',
263-
'cluster_ops',
256+
'cluster_write_ops',
264257
'$BUILD_DIR/mongo/db/common',
265258
'$BUILD_DIR/mongo/clientdriver',
266259
],
@@ -273,20 +266,7 @@ env.CppUnitTest(
273266
],
274267
LIBDEPS=[
275268
'base',
276-
'cluster_ops',
277-
'$BUILD_DIR/mongo/db/common',
278-
'$BUILD_DIR/mongo/clientdriver',
279-
],
280-
)
281-
282-
env.CppUnitTest(
283-
target='multi_host_query_test',
284-
source=[
285-
'multi_host_query_test.cpp',
286-
],
287-
LIBDEPS=[
288-
'base',
289-
'cluster_ops',
269+
'cluster_write_ops',
290270
'$BUILD_DIR/mongo/db/common',
291271
'$BUILD_DIR/mongo/clientdriver',
292272
],
@@ -301,7 +281,7 @@ env.Library(
301281
],
302282
LIBDEPS=[
303283
'$BUILD_DIR/mongo/bson',
304-
'cluster_ops',
284+
'cluster_write_ops',
305285
'$BUILD_DIR/mongo/db/common', # for Message
306286
],
307287
)
@@ -312,7 +292,7 @@ env.CppUnitTest(
312292
'write_ops/batch_upconvert_test.cpp',
313293
],
314294
LIBDEPS=[
315-
'cluster_ops',
295+
'cluster_write_ops',
316296
'cluster_write_op_conversion',
317297
'$BUILD_DIR/mongo/db/common',
318298
'$BUILD_DIR/mongo/server_options', # DbMessage needs server options
@@ -325,21 +305,16 @@ env.CppUnitTest(
325305
'write_ops/batch_downconvert_test.cpp',
326306
],
327307
LIBDEPS=[
328-
'cluster_ops',
308+
'cluster_write_ops',
329309
'cluster_write_op_conversion',
330310
'$BUILD_DIR/mongo/db/common',
331311
'$BUILD_DIR/mongo/server_options', # DbMessage needs server options
332312
]
333313
)
334314

335-
#
336315
# Implementations of components to perform cluster operations in mongos
337-
#
338-
# This is the glue code implementing the interfaces required by cluster ops
339-
# in particular environments.
340-
#
341316
env.Library(
342-
target='cluster_ops_impl',
317+
target='cluster_op_impl',
343318
source=[
344319
'chunk_manager_targeter.cpp',
345320
'cluster_write.cpp',
@@ -350,7 +325,7 @@ env.Library(
350325
LIBDEPS=[
351326
'$BUILD_DIR/mongo/bson',
352327
'batch_write_types',
353-
'cluster_ops',
328+
'cluster_write_ops',
354329
'cluster_write_op_conversion',
355330
],
356331
)

0 commit comments

Comments
 (0)