Build failure was fixed
@@ -1696,11 +1696,16 @@ public class OWOWCache extends OAbstractWriteCache implements OWriteCache, OCach
.open(nameIdMapHolderFileV2T, StandardOpenOption.CREATE, StandardOpenOption.WRITE, StandardOpenOption.READ);
for (Map.Entry<String, Integer> nameIdEntry : nameIdMap.entrySet()) {
+ if (nameIdEntry.getValue() >= 0) {
final OFileClassic fileClassic = files.get(externalFileId(nameIdEntry.getValue()));
final String fileSystemName = fileClassic.getName();
final NameFileIdEntry nameFileIdEntry = new NameFileIdEntry(nameIdEntry.getKey(), nameIdEntry.getValue(), fileSystemName);
writeNameIdEntry(v2NameIdMapHolder, nameFileIdEntry, false);
+ } else {
+ final NameFileIdEntry nameFileIdEntry = new NameFileIdEntry(nameIdEntry.getKey(), nameIdEntry.getValue(), "");
+ writeNameIdEntry(v2NameIdMapHolder, nameFileIdEntry, false);
+ }
}
v2NameIdMapHolder.force(true);
