mirror of
https://github.com/narrrl/proton-drive-linux.git
synced 2026-11-04 16:56:59 +01:00
refactor(core,fuse): find a queued op by its node's local id under either uid
This commit is contained in:
1 parent
e5f3f612f8
commit
d5d3b2da3f
5 files changed
+225
-78
No files matched your search
@@ -1568,10 +1568,8 @@ impl Core {
|
||||
// B123).
|
||||
let remote = node.clone();
|
||||
self.stamp_pending_sizes(std::slice::from_mut(&mut node));
|
||||
// Repoints queued children and node rows, and readdresses the placeholder row.
|
||||
// A no-op after `retire_create`, which has already done both.
|
||||
self.db
|
||||
.remap_local_uid(&local.to_string(), &real.to_string())?;
|
||||
// The rows and queued ops already follow the node: `retire_create`
|
||||
// moved its row to the real uid, and ops find it by local id.
|
||||
|
||||
self.for_each_state(|st| {
|
||||
if let Some(ino) = st.by_uid.remove(local) {
|
||||
|
||||
Reference in new issue
Block a user