Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
bbb9c02f
Commit
bbb9c02f
authored
Oct 12, 1999
by
terry%mozilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating the vote cache should not update the date-last-changed field
in the bug.
parent
63dfdca5
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
doeditvotes.cgi
doeditvotes.cgi
+1
-1
globals.pl
globals.pl
+1
-1
sanitycheck.cgi
sanitycheck.cgi
+3
-3
No files found.
doeditvotes.cgi
View file @
bbb9c02f
...
...
@@ -103,7 +103,7 @@ foreach my $id (@buglist) {
foreach
my
$id
(
keys
%
affected
)
{
SendSQL
(
"select sum(count) from votes where bug_id = $id"
);
my
$v
=
FetchOneColumn
();
SendSQL
(
"update bugs set votes = $v where bug_id = $id"
);
SendSQL
(
"update bugs set votes = $v
, delta_ts=delta_ts
where bug_id = $id"
);
}
SendSQL
(
"unlock tables"
);
...
...
globals.pl
View file @
bbb9c02f
...
...
@@ -535,7 +535,7 @@ sub RemoveVotes {
close
SENDMAIL
;
}
SendSQL
(
"delete from votes where bug_id = $id"
);
SendSQL
(
"update bugs set votes = 0 where bug_id = $id"
);
SendSQL
(
"update bugs set votes = 0
, delta_ts=delta_ts
where bug_id = $id"
);
}
}
...
...
sanitycheck.cgi
View file @
bbb9c02f
...
...
@@ -63,7 +63,7 @@ PutHeader("Bugzilla Sanity Check");
if
(
exists
$::FORM
{
'rebuildvotecache'
})
{
Status
(
"OK, now rebuilding vote cache."
);
SendSQL
(
"lock tables bugs write, votes read"
);
SendSQL
(
"update bugs set votes = 0"
);
SendSQL
(
"update bugs set votes = 0
, delta_ts=delta_ts
"
);
SendSQL
(
"select bug_id, sum(count) from votes group by bug_id"
);
my
%
votes
;
while
(
@row
=
FetchSQLData
())
{
...
...
@@ -71,10 +71,10 @@ if (exists $::FORM{'rebuildvotecache'}) {
$votes
{
$id
}
=
$v
;
}
foreach
my
$id
(
keys
%
votes
)
{
SendSQL
(
"update bugs set votes = $votes{$id} where bug_id = $id"
);
SendSQL
(
"update bugs set votes = $votes{$id}
, delta_ts=delta_ts
where bug_id = $id"
);
}
SendSQL
(
"unlock tables"
);
Status
(
"Vote cache has been rebuil
d
."
);
Status
(
"Vote cache has been rebuil
t
."
);
}
print
"OK, now running sanity checks.<P>\n"
;
...
...
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