protected void syncInternal() { doFlush(0); syncDataOnlyInternal(); }
protected void syncInternal() { doFlush(0); syncDataOnlyInternal(); }
protected void syncInternal() { doFlush(0); syncDataOnlyInternal(); }
protected void syncInternal() { doFlush(0); syncDataOnlyInternal(); }
protected void syncInternal() { if (syncNeeded) { flushInternal(); syncDataOnlyInternal(); if (!directorySynced) { CLibrary.trySync(directoryFD); directorySynced = true; } syncNeeded = false; } }
protected void flushInternal() { if (isDirty) { flushData(); if (trickleFsync) { bytesSinceTrickleFsync += validBufferBytes; if (bytesSinceTrickleFsync >= trickleFsyncByteInterval) { syncDataOnlyInternal(); bytesSinceTrickleFsync = 0; } } // Remember that we wrote, so we don't write it again on next flush(). resetBuffer(); isDirty = false; } }
@Override protected void doFlush(int count) { flushData(); if (option.trickleFsync()) { bytesSinceTrickleFsync += buffer.position(); if (bytesSinceTrickleFsync >= option.trickleFsyncByteInterval()) { syncDataOnlyInternal(); bytesSinceTrickleFsync = 0; } } // Remember that we wrote, so we don't write it again on next flush(). resetBuffer(); }
@Override protected void doFlush(int count) { flushData(); if (option.trickleFsync()) { bytesSinceTrickleFsync += buffer.position(); if (bytesSinceTrickleFsync >= option.trickleFsyncByteInterval()) { syncDataOnlyInternal(); bytesSinceTrickleFsync = 0; } } // Remember that we wrote, so we don't write it again on next flush(). resetBuffer(); }
@Override protected void doFlush(int count) { flushData(); if (option.trickleFsync()) { bytesSinceTrickleFsync += buffer.position(); if (bytesSinceTrickleFsync >= option.trickleFsyncByteInterval()) { syncDataOnlyInternal(); bytesSinceTrickleFsync = 0; } } // Remember that we wrote, so we don't write it again on next flush(). resetBuffer(); }
@Override protected void doFlush(int count) { flushData(); if (option.trickleFsync()) { bytesSinceTrickleFsync += buffer.position(); if (bytesSinceTrickleFsync >= option.trickleFsyncByteInterval()) { syncDataOnlyInternal(); bytesSinceTrickleFsync = 0; } } // Remember that we wrote, so we don't write it again on next flush(). resetBuffer(); }