Closed
Bug 367823
Opened 18 years ago
Closed 18 years ago
addcheckin *writes* to the shadow database
Categories
(Webtools Graveyard :: Bonsai, defect)
Webtools Graveyard
Bonsai
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: justdave, Assigned: justdave)
Details
Attachments
(1 file)
|
527 bytes,
patch
|
bear
:
review+
|
Details | Diff | Splinter Review |
discovered accidentally (watching the process list on a loaded DB server) that bonsai was writing to the shadowdb when adding new checkins.
I've got two patches coming as a result of this. One adds two new params to let you set a separate username/password for connecting to the shadow database (so you can set that user to not have enough privs to actually do that), and I'll file a separate bug for that one.
The patch coming on this bug fixes the problem in a hacky way. I'd love to figure out a less hacky way to fix it.
| Assignee | ||
Comment 1•18 years ago
|
||
As mentioned earlier, this fix feels like a hack. I'd like to know why it's necessary. :)
Attachment #252432 -
Flags: review?(bear)
Comment 2•18 years ago
|
||
Comment on attachment 252432 [details] [diff] [review]
Patch v1
the real problem is in the call to GetHashId() that happens during the loop thru the lines - it has the assumption that it should leave the shadow db active.
Attachment #252432 -
Flags: review?(bear) → review-
Comment 3•18 years ago
|
||
Comment on attachment 252432 [details] [diff] [review]
Patch v1
I looked at GetID and GetHashedID (both of which switch to write db and then switch back to shadow db) to find a non-hackish fix - no luck.
I then looked into maybe making SendSQL smarter but that misses the items where you need to do a query first and then a write.
Sadly it looks like your fix is the least hackish :(
Attachment #252432 -
Flags: review- → review+
| Assignee | ||
Comment 4•18 years ago
|
||
Checking in globals.pl;
/cvsroot/mozilla/webtools/bonsai/globals.pl,v <-- globals.pl
new revision: 1.47; previous revision: 1.46
done
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Updated•9 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•