Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sebastien Robin
erp5
Commits
55ad3274
Commit
55ad3274
authored
Jan 10, 2013
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass ERP5Site_reindexAll a higher priority value.
Also, make it possible to tweak base_priority by parameter.
parent
9a3e6a6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
product/ZSQLCatalog/ZSQLCatalog.py
product/ZSQLCatalog/ZSQLCatalog.py
+5
-4
No files found.
product/ZSQLCatalog/ZSQLCatalog.py
View file @
55ad3274
...
@@ -415,6 +415,7 @@ class ZCatalog(Folder, Persistent, Implicit):
...
@@ -415,6 +415,7 @@ class ZCatalog(Folder, Persistent, Implicit):
skin_name_list
=
None
,
skin_name_list
=
None
,
skin_selection_list
=
None
,
skin_selection_list
=
None
,
update_destination_sql_catalog
=
None
,
update_destination_sql_catalog
=
None
,
base_priority
=
5
,
REQUEST
=
None
,
RESPONSE
=
None
):
REQUEST
=
None
,
RESPONSE
=
None
):
"""
"""
Starts a hot reindexing.
Starts a hot reindexing.
...
@@ -513,24 +514,24 @@ class ZCatalog(Folder, Persistent, Implicit):
...
@@ -513,24 +514,24 @@ class ZCatalog(Folder, Persistent, Implicit):
self
.
ERP5Site_reindexAll
(
sql_catalog_id
=
destination_sql_catalog_id
,
self
.
ERP5Site_reindexAll
(
sql_catalog_id
=
destination_sql_catalog_id
,
final_activity_tag
=
final_activity_tag
,
final_activity_tag
=
final_activity_tag
,
clear_catalog
=
1
,
clear_catalog
=
1
,
additional_priority
=
1
)
additional_priority
=
base_priority
)
# Once reindexing is finished, change the hot reindexing state so that
# Once reindexing is finished, change the hot reindexing state so that
# new catalog changes are applied in both catalogs.
# new catalog changes are applied in both catalogs.
self
.
activate
(
after_tag
=
final_activity_tag
,
self
.
activate
(
after_tag
=
final_activity_tag
,
priority
=
5
).
setHotReindexingState
(
HOT_REINDEXING_DOUBLE_INDEXING_STATE
,
priority
=
base_priority
).
setHotReindexingState
(
HOT_REINDEXING_DOUBLE_INDEXING_STATE
,
source_sql_catalog_id
=
source_sql_catalog_id
,
source_sql_catalog_id
=
source_sql_catalog_id
,
destination_sql_catalog_id
=
destination_sql_catalog_id
,
destination_sql_catalog_id
=
destination_sql_catalog_id
,
archive_path
=
archive_path
)
archive_path
=
archive_path
)
# Once in double-indexing mode, planned reindex can be replayed.
# Once in double-indexing mode, planned reindex can be replayed.
self
.
activate
(
after_method_id
=
'setHotReindexingState'
,
self
.
activate
(
after_method_id
=
'setHotReindexingState'
,
priority
=
5
).
playBackRecordedObjectList
(
priority
=
base_priority
).
playBackRecordedObjectList
(
sql_catalog_id
=
destination_sql_catalog_id
)
sql_catalog_id
=
destination_sql_catalog_id
)
# Once there is nothing to replay, databases are sync'ed, so the new
# Once there is nothing to replay, databases are sync'ed, so the new
# catalog can become current.
# catalog can become current.
self
.
activate
(
after_method_id
=
(
'playBackRecordedObjectList'
,
self
.
activate
(
after_method_id
=
(
'playBackRecordedObjectList'
,
'InventoryModule_reindexMovementList'
),
'InventoryModule_reindexMovementList'
),
after_tag
=
'InventoryModule_reindexMovementList'
,
after_tag
=
'InventoryModule_reindexMovementList'
,
priority
=
5
).
finishHotReindexing
(
priority
=
base_priority
).
finishHotReindexing
(
source_sql_catalog_id
=
source_sql_catalog_id
,
source_sql_catalog_id
=
source_sql_catalog_id
,
destination_sql_catalog_id
=
destination_sql_catalog_id
,
destination_sql_catalog_id
=
destination_sql_catalog_id
,
skin_selection_dict
=
skin_selection_dict
,
skin_selection_dict
=
skin_selection_dict
,
...
...
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