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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
a7c87234
Commit
a7c87234
authored
May 22, 2002
by
matty%chariot.net.au
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 93667: Add comments to uncommented sections of sanitycheck.cgi
parent
7c4b8b32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
3 deletions
+21
-3
sanitycheck.cgi
sanitycheck.cgi
+21
-3
No files found.
sanitycheck.cgi
View file @
a7c87234
...
...
@@ -121,6 +121,10 @@ my @checklist;
PutHeader
(
"Bugzilla Sanity Check"
);
###########################################################################
# Fix vote cache
###########################################################################
if
(
exists
$::FORM
{
'rebuildvotecache'
})
{
Status
(
"OK, now rebuilding vote cache."
);
SendSQL
(
"lock tables bugs write, votes read"
);
...
...
@@ -158,6 +162,10 @@ foreach my $field (("bug_severity", "bug_status", "op_sys",
}
}
###########################################################################
# Perform referential (cross) checks
###########################################################################
CrossCheck
(
"keyworddefs"
,
"id"
,
[
"keywords"
,
"keywordid"
]);
...
...
@@ -207,6 +215,9 @@ CrossCheck("products", "product",
[
"versions"
,
"program"
,
"value"
],
[
"attachstatusdefs"
,
"product"
,
"name"
]);
###########################################################################
# Perform group checks
###########################################################################
Status
(
"Checking groups"
);
SendSQL
(
"select bit from groups where bit != pow(2, round(log(bit) / log(2)))"
);
...
...
@@ -224,8 +235,9 @@ while (@row = FetchSQLData()) {
Alert
(
"Bad groupset $row[1] found in bug "
.
BugLink
(
$row
[
0
]));
}
###########################################################################
# Perform product specific field checks
###########################################################################
Status
(
"Checking version/products"
);
...
...
@@ -299,7 +311,10 @@ foreach my $ref (@checklist) {
}
}
###########################################################################
# Perform login checks
###########################################################################
Status
(
"Checking profile logins"
);
my
$emailregexp
=
Param
(
"emailregexp"
);
...
...
@@ -312,6 +327,9 @@ while (my ($id,$email) = (FetchSQLData())) {
Alert
"Bad profile email address, id=$id, <$email>."
}
###########################################################################
# Perform vote/keyword cache checks
###########################################################################
SendSQL
(
"SELECT bug_id,votes,keywords FROM bugs "
.
"WHERE votes != 0 OR keywords != ''"
);
...
...
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