mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
GP-1411 minor correction to filesystem index rebuild
This commit is contained in:
parent
83308221e5
commit
3f351eed41
1 changed files with 21 additions and 21 deletions
|
@ -588,29 +588,29 @@ public class IndexedLocalFileSystem extends LocalFileSystem {
|
|||
return false;
|
||||
}
|
||||
|
||||
String conflictedItemStorageName = findItemStorageName(parentPath, name);
|
||||
|
||||
String storageName = pfile.getStorageName();
|
||||
|
||||
if (conflictedItemStorageName != null) {
|
||||
try {
|
||||
if (storageName.compareTo(conflictedItemStorageName) <= 0) {
|
||||
conflictedItemStorageName = storageName;
|
||||
return true; // skip conflict orphan
|
||||
}
|
||||
|
||||
// remove conflict orphan from index and, add newer item below
|
||||
deallocateItemStorage(parentPath, name);
|
||||
}
|
||||
finally {
|
||||
Msg.warn(this,
|
||||
"Detected orphaned project file " + conflictedItemStorageName + ": " +
|
||||
getPath(parentPath, name));
|
||||
}
|
||||
}
|
||||
|
||||
indexJournal.open();
|
||||
try {
|
||||
String conflictedItemStorageName = findItemStorageName(parentPath, name);
|
||||
|
||||
String storageName = pfile.getStorageName();
|
||||
|
||||
if (conflictedItemStorageName != null) {
|
||||
try {
|
||||
if (storageName.compareTo(conflictedItemStorageName) <= 0) {
|
||||
conflictedItemStorageName = storageName;
|
||||
return true; // skip conflict orphan
|
||||
}
|
||||
|
||||
// remove conflict orphan from index and, add newer item below
|
||||
deallocateItemStorage(parentPath, name);
|
||||
}
|
||||
finally {
|
||||
Msg.warn(this,
|
||||
"Detected orphaned project file " + conflictedItemStorageName + ": " +
|
||||
getPath(parentPath, name));
|
||||
}
|
||||
}
|
||||
|
||||
Folder folder = addFolderToIndexIfMissing(parentPath);
|
||||
Item item = new Item(folder, name, pfile.getStorageName());
|
||||
bumpNextFileIndexID(item.getStorageName());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue