Every call to LoggerheadConfig() creates a new temp dir
Bug #358322 reported by
Matt Nordhoff
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
loggerhead |
Fix Released
|
Critical
|
Matt Nordhoff |
Bug Description
Every time LoggerheadConfig() is instantiated, it creates a new SQL_DIR. And I assume it's instantiated on every, or nearly every, page load, because it created 30,000 of them and filled my /tmp directory. :D
Related branches
lp:~mnordhoff/loggerhead/358322-sql-dirs
Merged
into
lp:loggerhead
- Michael Hudson-Doyle: Approve
- Diff: None lines
summary: |
- Every call to LoggerhedConfig() creates a new temp dir + Every call to LoggerheadConfig() creates a new temp dir |
Changed in loggerhead: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I've pushed a quick fix to the attached branch. I just changed it to only create one global SQL_DIR, which may or may not be the right solution:
* Is global state related to the SQL cache okay?
* Should LoggerheadConfig be instantiated tons of times in the first place? I know it will be at least twice (serve-branches, BranchesFromFil eSystemServer) , so either that should be fixed or this bug matters anyway.