Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 54d3200

Browse files
authored
Merge pull request rethinkdb#133 from alexa-infra/fix-export-cursor-recovery
Fix cursor recovery during export
2 parents c266044 + f866e10 commit 54d3200

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rethinkdb/_export.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ def export_table(db, table, directory, options, error_queue, progress_info, sind
351351
cursor = options.retryQuery(
352352
'backup cursor for %s.%s' %
353353
(db, table), query.db(db).table(table).between(
354-
lastPrimaryKey, None, left_bound="open").order_by(
354+
lastPrimaryKey, query.maxval, left_bound="open").order_by(
355355
index=table_info["primary_key"]), run_options=run_options)
356356

357357
except (errors.ReqlError, errors.ReqlDriverError) as ex:

0 commit comments

Comments
 (0)