BFS: Don't send duplicate attribute change notifications to queries on renames.
LiveUpdateRenameMove() sends create/remove notifications, so we don't want to send duplicate ones in the LiveUpdate() hook.
This commit is contained in:
@@ -1299,7 +1299,8 @@ bfs_rename(fs_volume* _volume, fs_vnode* _oldDir, const char* oldName,
|
||||
status = inode->SetName(transaction, newName);
|
||||
if (status == B_OK) {
|
||||
Index index(volume);
|
||||
index.UpdateName(transaction, oldName, newName, inode);
|
||||
index.UpdateName(transaction, oldName, newName, inode,
|
||||
false /* we already updated live queries, above */);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user