Skip to content

Commit 9b520ab

Browse files
authored
Merge branch 'main' into transfer-api
2 parents faa1989 + ba6efb1 commit 9b520ab

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmd/serv.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ func runServ(c *cli.Context) error {
191191
return fail("Invalid repo name", "Invalid repo name: %s", reponame)
192192
}
193193

194-
if setting.EnablePprof || c.Bool("enable-pprof") {
194+
if c.Bool("enable-pprof") {
195195
if err := os.MkdirAll(setting.PprofDataPath, os.ModePerm); err != nil {
196196
return fail("Error while trying to create PPROF_DATA_PATH", "Error while trying to create PPROF_DATA_PATH: %v", err)
197197
}

modules/doctor/dbconsistency.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,13 @@ func checkDBConsistency(logger log.Logger, autofix bool) error {
167167
"lfs_lock", "repository", "lfs_lock.repo_id=repository.id"),
168168
// find collaborations without users
169169
genericOrphanCheck("Collaborations without existing user",
170-
"collaboration", "user", "collaboration.user_id=user.id"),
170+
"collaboration", "user", "collaboration.user_id=`user`.id"),
171171
// find collaborations without repository
172172
genericOrphanCheck("Collaborations without existing repository",
173173
"collaboration", "repository", "collaboration.repo_id=repository.id"),
174174
// find access without users
175175
genericOrphanCheck("Access entries without existing user",
176-
"access", "user", "access.user_id=user.id"),
176+
"access", "user", "access.user_id=`user`.id"),
177177
// find access without repository
178178
genericOrphanCheck("Access entries without existing repository",
179179
"access", "repository", "access.repo_id=repository.id"),

0 commit comments

Comments
 (0)