Indication of progress of file scan was added. Bug fixing.
@@ -6338,7 +6338,7 @@ public abstract class OAbstractPaginatedStorage extends OStorageAbstract
int scannedFiles = 0;
for (final Map.Entry<String, Long> fileEntry : files.entrySet()) {
OLogManager.instance().infoNoDb(this,
- "Scanning of file %s in storage % (%d out of %d files are scanned)",
+ "Scanning of file %s in storage %s (%d out of %d files are scanned)",
fileEntry.getKey(), name, scannedFiles, files.size());
final long fileId = fileEntry.getValue();
@@ -6358,11 +6358,11 @@ public abstract class OAbstractPaginatedStorage extends OStorageAbstract
throw new IllegalStateException("Id of WAL operation can not be duplicated");
}
- final int scannedPercent = (int)(100 * (pageIndex + 1) / filledUpTo);
+ final int scannedPercent = (int)((100 * (pageIndex + 1)) / filledUpTo);
if (scannedPercent >= prevScannedPercent + 10) {
prevScannedPercent = scannedPercent;
OLogManager.instance().infoNoDb(this,
- "%d % of file %s in storage %s is scanned.", scannedPercent, fileEntry.getKey(),
+ "%d %% of file %s in storage %s is scanned.", scannedPercent, fileEntry.getKey(),
name);
}
} finally {
