commit | 085a3089c508338ff6f6ae1f9733b203571618f8 | [log] [tgz] |
---|---|---|
author | David Pursehouse <dpursehouse@collab.net> | Wed Feb 01 22:34:32 2017 +0900 |
committer | David Pursehouse <dpursehouse@collab.net> | Fri Feb 03 10:47:52 2017 +0000 |
tree | 7b4902f23aef1c799b844e50a7e00bd8dc1dd4b6 | |
parent | 48d05ea980612adb61a8272ad5b6c8cdea1502e2 [diff] |
MetaDataUpdate: Do not close repository that was passed in The repository to be updated by MetaDataUpdate can either be passed in, or created based on other passed parameters. If the repository is passed in, it should not be closed by the MetaDataUpdate's close() method. This is because it is possible that the repository was created in a try-with-resource block and will get automatically closed. Closing it in MetaDataUpdate will then cause the repository to be closed too many times, resulting in a corrupt use count. Update the static factory methods to prevent closing of the repository that was passed in. Also update the Javadoc to explicitly mention that the passed in repository must be closed by the caller. Also rename 'db' member variable and parameters to 'repository' which is more meaningful. Bug: Issue 5404 Change-Id: I7ef68ecba31f1ca2528cf96c698c908c7303bdca
Gerrit is a code review and project management tool for Git based projects.
Gerrit makes reviews easier by showing changes in a side-by-side display, and allowing inline comments to be added by any reviewer.
Gerrit simplifies Git based project maintainership by permitting any authorized user to submit changes to the master Git repository, rather than requiring all approved changes to be merged in by hand by the project maintainer.
For information about how to install and use Gerrit, refer to the documentation.
Our canonical Git repository is located on googlesource.com. There is a mirror of the repository on Github.
Please report bugs on the issue tracker.
Gerrit is the work of hundreds of contributors. We appreciate your help!
Please read the contribution guidelines.
Note that we do not accept Pull Requests via the Github mirror.
The IRC channel on freenode is #gerrit. An archive is available at: echelog.com.
The Developer Mailing list is repo-discuss on Google Groups.
Gerrit is provided under the Apache License 2.0.
Install Buck and run the following:
git clone --recursive https://gerrit.googlesource.com/gerrit cd gerrit && buck build release
The instruction how to configure GerritForge/BinTray repositories is here
On Debian/Ubuntu run:
apt-get update & apt-get install gerrit=<version>-<release>
NOTE: release is a counter that starts with 1 and indicates the number of packages that have been released with the same version of the software.
On CentOS/RedHat run:
yum clean all && yum install gerrit-<version>[-<release>]
NOTE: release is optional. Last released package of the version is installed if the release number is omitted.