We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6d8978 commit a88f11cCopy full SHA for a88f11c
1 file changed
rethinkdb/_import.py
@@ -1085,10 +1085,6 @@ def parse_options(argv, prog=None):
1085
if options.custom_header is not None:
1086
parser.error("--custom-header option is not valid for json files")
1087
1088
- if options.max_document_size > 0:
1089
- global JSON_MAX_BUFFER_SIZE
1090
- JSON_MAX_BUFFER_SIZE = options.max_document_size
1091
-
1092
options.file = os.path.abspath(options.file)
1093
1094
else:
@@ -1099,6 +1095,11 @@ def parse_options(argv, prog=None):
1099
1095
1100
1096
# --
1101
1097
1098
+ # max_document_size - json
+ if options.max_document_size > 0:
+ global JSON_MAX_BUFFER_SIZE
+ JSON_MAX_BUFFER_SIZE = options.max_document_size
1102
+
1103
# max_nesting_depth
1104
if options.max_nesting_depth > 0:
1105
global MAX_NESTING_DEPTH
0 commit comments