diff options
author | Timothy Andrew <mail@timothyandrew.net> | 2017-02-06 17:18:27 +0530 |
---|---|---|
committer | Timothy Andrew <mail@timothyandrew.net> | 2017-02-24 16:50:19 +0530 |
commit | 53c34c7436112d7cac9c3887ada1d5ae630a206c (patch) | |
tree | 6a3262eef1760c3aa3d88ef9bc57b3f88bb85ceb /spec/models | |
parent | ca16c3734b7b89f71bdc9e1c18152aa1599c4f89 (diff) | |
download | gitlab-ce-53c34c7436112d7cac9c3887ada1d5ae630a206c.tar.gz |
Implement review comments from @DouweM and @nick.thomas.
1. Use an advisory lock to guarantee the absence of concurrency in `User.ghost`,
to prevent data races from creating more than one ghost, or preventing the
creation of ghost users by causing validation errors.
2. Use `update_all` instead of updating issues one-by-one.
Diffstat (limited to 'spec/models')
0 files changed, 0 insertions, 0 deletions