diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d12445..8425758 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 2.1.6 (June 25, 2023)\n +- fix: disable directory fsync on AIX and IBM i ("os400") + ## 2.1.5 (February 12, 2023) - fix: publish config diff --git a/packages/core/src/storage.js b/packages/core/src/storage.js index c569cf7..d9638ad 100755 --- a/packages/core/src/storage.js +++ b/packages/core/src/storage.js @@ -67,7 +67,13 @@ storage.flushToStorage = function (options, callback) { // Windows can't fsync (FlushFileBuffers) directories. We can live with this as it cannot cause 100% dataloss // except in the very rare event of the first time database is loaded and a crash happens - if (flags === 'r' && (process.platform === 'win32' || process.platform === 'win64')) { + if ( + flags === 'r' && + (process.platform === 'win32' || + process.platform === 'win64' || + process.platform === 'aix' || + process.platform === 'os400') + ) { return callback(null); } diff --git a/version b/version index cd57a8b..399088b 100644 --- a/version +++ b/version @@ -1 +1 @@ -2.1.5 +2.1.6