Skip to content

Commit 4e782e9

Browse files
andrii0lomakintglman
authored andcommitted
We do not need to make fsync during WAL truncation it will be forced by DWL itself.
1 parent c50e5d6 commit 4e782e9

File tree

1 file changed

+0
-20
lines changed
  • core/src/main/java/com/orientechnologies/orient/core/storage/cache/local

1 file changed

+0
-20
lines changed

core/src/main/java/com/orientechnologies/orient/core/storage/cache/local/OWOWCache.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -870,31 +870,11 @@ public void syncDataFiles(final long segmentId, final byte[] lastMetadata) throw
870870
if (lastMetadata != null) {
871871
writeAheadLog.log(new MetaDataRecord(lastMetadata));
872872
}
873-
874-
for (final Integer intId : nameIdMap.values()) {
875-
if (intId < 0) {
876-
continue;
877-
}
878-
879-
if (callFsync) {
880-
final long fileId = composeFileId(id, intId);
881-
final OClosableEntry<Long, OFile> entry = files.acquire(fileId);
882-
try {
883-
final OFile fileClassic = entry.get();
884-
fileClassic.synch();
885-
} finally {
886-
files.release(entry);
887-
}
888-
}
889-
}
890-
891873
writeAheadLog.flush();
892874
writeAheadLog.cutAllSegmentsSmallerThan(segmentId);
893875
} finally {
894876
doubleWriteLog.endCheckpoint();
895877
}
896-
} catch (final InterruptedException e) {
897-
throw OException.wrapException(new OStorageException("Fuzzy checkpoint was interrupted"), e);
898878
} finally {
899879
filesLock.releaseReadLock();
900880
}

0 commit comments

Comments
 (0)