File: replace-chashmap-with-dashmap.patch

package info (click to toggle)
rust-cntr 1.6.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 584 kB
  • sloc: sh: 20; makefile: 17
file content (25 lines) | stat: -rw-r--r-- 768 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -32,4 +32,4 @@
 
-[dependencies.chashmap]
-version = "2.2.2"
+[dependencies.dashmap]
+version = ">= 5.5"
 
--- a/src/fs.rs
+++ b/src/fs.rs
@@ -1,2 +1,2 @@
-use chashmap::CHashMap;
+use dashmap::DashMap;
 use cntr_fuse::{
@@ -88,3 +88,3 @@
     inode_mapping: Arc<Mutex<HashMap<InodeKey, u64>>>,
-    inodes: Arc<CHashMap<u64, Arc<Inode>>>,
+    inodes: Arc<DashMap<u64, Arc<Inode>>>,
     inode_counter: Arc<RwLock<InodeCounter>>,
@@ -204,3 +204,3 @@
             inode_mapping: Arc::new(Mutex::new(HashMap::<InodeKey, u64>::new())),
-            inodes: Arc::new(CHashMap::<u64, Arc<Inode>>::new()),
+            inodes: Arc::new(DashMap::<u64, Arc<Inode>>::new()),
             inode_counter: Arc::new(RwLock::new(InodeCounter {