Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require exclusive locks for vfs and renames #8763

Merged
merged 1 commit into from
Jun 21, 2021
Merged

Conversation

TheOneRing
Copy link
Member

@TheOneRing TheOneRing commented Jun 21, 2021

Fixes: #8761, #8754

Copy link
Member

@dschmidt dschmidt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤷🏻

src/gui/lockwatcher.cpp Outdated Show resolved Hide resolved
if (!FileSystem::isFileLocked(it.key(), it.value())) {
qCInfo(lcLockWatcher) << "Lock of" << it.key() << "was released";
emit fileUnlocked(it.key());
unlocked.insert(it.key());
}
}

// Doing it this way instead of with a QMutableSetIterator
// ensures that calling back into addFile from connected
// slots isn't a problem.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this comment is sufficient still?

Copy link
Contributor

@dragotin dragotin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@TheOneRing TheOneRing merged commit 031d59c into 2.8 Jun 21, 2021
@delete-merged-branch delete-merged-branch bot deleted the work/lock_exclusive branch June 21, 2021 12:05
@sonarcloud
Copy link

sonarcloud bot commented Jun 21, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants