Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
physical
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpha
physical
Commits
e42d8857
Commit
e42d8857
authored
Mar 11, 2019
by
段英荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify topic transfer
parent
83c687d0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
table_scan.py
libs/table_scan.py
+2
-0
No files found.
libs/table_scan.py
View file @
e42d8857
...
@@ -5,6 +5,7 @@ from __future__ import unicode_literals, print_function, absolute_import
...
@@ -5,6 +5,7 @@ from __future__ import unicode_literals, print_function, absolute_import
import
six
import
six
import
random
import
random
from
django.db
import
models
from
django.db
import
models
import
logging
class
ITableChunk
(
object
):
class
ITableChunk
(
object
):
...
@@ -173,6 +174,7 @@ class TableSlicer(object):
...
@@ -173,6 +174,7 @@ class TableSlicer(object):
def
chunks
(
self
):
def
chunks
(
self
):
reversed_sep_list
=
list
(
reversed
(
self
.
_sep_list
))
reversed_sep_list
=
list
(
reversed
(
self
.
_sep_list
))
logging
.
info
(
"duan add,reversed_sep_list:
%
d"
%
reversed_sep_list
)
for
i
in
range
(
len
(
self
.
_sep_list
)
-
1
):
for
i
in
range
(
len
(
self
.
_sep_list
)
-
1
):
pk_start
=
reversed_sep_list
[
i
+
1
]
pk_start
=
reversed_sep_list
[
i
+
1
]
pk_stop
=
reversed_sep_list
[
i
]
pk_stop
=
reversed_sep_list
[
i
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment