3232import sys
3333import time
3434import traceback
35- # Unused. Delete if all tests pass even when commented
36- # from multiprocessing.queues import Queue, SimpleQueue
3735
38- import six
36+ from multiprocessing .queues import SimpleQueue
37+
3938
4039from rethinkdb import ast , errors , query
4140from rethinkdb .cli import utils_common
42- # from rethinkdb.logger import default_logger
4341
4442try :
4543 unicode
@@ -1263,6 +1261,11 @@ def import_tables(options, sources, files_ignored=None):
12631261
12641262 tables = dict (((x .db , x .table ), x ) for x in sources ) # (db, table) => table
12651263
1264+ ctx = multiprocessing .get_context (multiprocessing .get_start_method ())
1265+ error_queue = SimpleQueue (ctx = ctx )
1266+ warning_queue = SimpleQueue (ctx = ctx )
1267+ timing_queue = SimpleQueue (ctx = ctx )
1268+ """
12661269 if six.PY3:
12671270 ctx = multiprocessing.get_context(multiprocessing.get_start_method())
12681271 error_queue = SimpleQueue(ctx=ctx)
@@ -1272,7 +1275,7 @@ def import_tables(options, sources, files_ignored=None):
12721275 error_queue = SimpleQueue()
12731276 warning_queue = SimpleQueue()
12741277 timing_queue = SimpleQueue()
1275-
1278+ """
12761279 max_queue_size = options .clients * 3
12771280 work_queue = multiprocessing .Manager ().Queue (max_queue_size )
12781281
0 commit comments