diff --git a/CHANGELOG.md b/CHANGELOG.md index c0b43241b..1cd1bd9f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ Arc>`. `add_document` and `delete_term` can only require a read lock. (@pmasurel) - Introducing `Opstamp` as an expressive type alias for `u64`. (@petr-tik) - Stamper now relies on `AtomicU64` on all platforms (@petr-tik) +- Bugfix - Files get deleted slightly earlier ## How to update? diff --git a/src/core/index.rs b/src/core/index.rs index 87590984d..578002a16 100644 --- a/src/core/index.rs +++ b/src/core/index.rs @@ -538,6 +538,9 @@ mod tests { assert_eq!(count, 2); } + // This test will not pass on windows, because windows + // prevent deleting files that are MMapped. + #[cfg(not(target_os = "windows"))] #[test] fn garbage_collect_works_as_intended() { let directory = RAMDirectory::create();