diff options
author | Paul Masurel <paul.masurel@gmail.com> | 2019-06-27 09:48:53 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-27 09:48:53 +0900 |
commit | 3e0907fe0544b3a4809adffa567d8a5019ba9d34 (patch) | |
tree | 4f6fb03af7e4fe0d7cbe21a61502a833a718cc6c | |
parent | ab4a8916d3d2a3f53fe0b2382acabd0dcf3017ac (diff) |
Fixed CHANGELOG and disable one test on windows (#577)
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | src/core/index.rs | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index c0b4324..1cd1bd9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ Arc<RwLock<IndexWriter>>`. `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 8759098..578002a 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(); |