🌐 AI搜索 & 代理 主页
Skip to content

Commit 6b23a75

Browse files
author
lsabi1234
committed
Fix missing references and packages from porting the old driver
1 parent 847ebde commit 6b23a75

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

rethinkdb/cli/_import.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,12 @@
3232
import sys
3333
import time
3434
import 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

4039
from rethinkdb import ast, errors, query
4140
from rethinkdb.cli import utils_common
42-
# from rethinkdb.logger import default_logger
4341

4442
try:
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

rethinkdb/cli/_restore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import time
3232
import traceback
3333

34-
from rethinkdb import utils_common, _import
34+
from rethinkdb.cli import utils_common, _import
3535

3636
usage = (
3737
"rethinkdb restore FILE [-c HOST:PORT] [--tls-cert FILENAME] [-p] [--password-file FILENAME] [--clients NUM] "

0 commit comments

Comments
 (0)