mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 09:49:14 +00:00
Bug 239263: Avoid hazard in User->groups by switching to main DB for rederive
r=jouni a=justdave
This commit is contained in:
parent
8e6664dfb4
commit
d3a014761e
@ -107,7 +107,14 @@ sub _create {
|
||||
$id);
|
||||
|
||||
if ($result) {
|
||||
my $is_main_db;
|
||||
unless ($is_main_db = Bugzilla->dbwritesallowed()) {
|
||||
Bugzilla->switch_to_main_db();
|
||||
}
|
||||
$self->derive_groups($tables_locked_for_derive_groups);
|
||||
unless ($is_main_db) {
|
||||
Bugzilla->switch_to_shadow_db();
|
||||
}
|
||||
}
|
||||
|
||||
return $self;
|
||||
|
Loading…
x
Reference in New Issue
Block a user