Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
xmlsitemap
Commits
d3d507ab
Commit
d3d507ab
authored
Mar 05, 2010
by
Dave Reid
Browse files
#724272
by Dave Reid, jmpoure: Fixed endless loop during rebuilding with PostgreSQL.
parent
0bd25e4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
xmlsitemap.generate.inc
View file @
d3d507ab
...
...
@@ -454,7 +454,6 @@ function xmlsitemap_rebuild_batch_fetch($entity, &$context) {
$bundles
=
xmlsitemap_get_link_type_enabled_bundles
(
$entity
);
$query
->
condition
(
$info
[
'object keys'
][
'bundle'
],
$bundles
);
}
$query
->
orderBy
(
$info
[
'object keys'
][
'id'
]);
$query
->
addTag
(
'xmlsitemap_rebuild'
);
$query
->
addMetaData
(
'entity'
,
$entity
);
$query
->
addMetaData
(
'entity_info'
,
$info
);
...
...
@@ -463,6 +462,9 @@ function xmlsitemap_rebuild_batch_fetch($entity, &$context) {
$context
[
'sandbox'
][
'max'
]
=
$query
->
countQuery
()
->
execute
()
->
fetchField
();
}
// PostgreSQL cannot have the ORDERED BY in the count query.
$query
->
orderBy
(
$info
[
'object keys'
][
'id'
]);
$query
->
range
(
0
,
variable_get
(
'xmlsitemap_batch_limit'
,
100
));
$ids
=
$query
->
execute
()
->
fetchCol
();
...
...
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