* {@code RepositoryCache} is used, this lock instance will be used by all
* threads.
*/
- final ReentrantLock inProcessPackedRefsLock = new ReentrantLock(true);
+ final ReentrantLock inProcessPackedRefsLock;
/**
* Number of modifications made to this database.
packedRefs.set(refDb.packedRefs.get());
trustFolderStat = refDb.trustFolderStat;
trustPackedRefsStat = refDb.trustPackedRefsStat;
+ inProcessPackedRefsLock = refDb.inProcessPackedRefsLock;
}
RefDirectory(FileRepository db) {
.getEnum(ConfigConstants.CONFIG_CORE_SECTION, null,
ConfigConstants.CONFIG_KEY_TRUST_PACKED_REFS_STAT,
TrustPackedRefsStat.UNSET);
+ inProcessPackedRefsLock = new ReentrantLock(true);
}
Repository getRepository() {