In tests, properly adjust the minimum pid
@@ -96,7 +96,7 @@ fn pagecache_caching() {
}
for i in 0..1000 {
- let id = 2 + (i % 2);
+ let id = 3 + (i % 2);
let (key, _) = pc.get(id, &tx).unwrap().unwrap();
let key = pc.link(id, key, vec![i as usize], &tx).unwrap().unwrap();
keys.insert(id, key);
@@ -136,7 +136,7 @@ fn parallel_pagecache() -> sled::Result<()> {
.spawn(move || {
for i in (tn * N_PER_THREAD)..((tn + 1) * N_PER_THREAD)
{
- $f(&*tree, i + 2);
+ $f(&*tree, i + 3);
}
})
.expect("should be able to spawn thread");
@@ -256,7 +256,7 @@ fn pagecache_strange_crash_1() {
}
for i in 0..1000 {
- let id = 2 + (i % 2);
+ let id = 3 + (i % 2);
let (key, _frags) = pc.get(id, &tx).unwrap().unwrap();
let key = pc.link(id, key, vec![i as usize], &tx).unwrap().unwrap();
keys.insert(id, key);
@@ -294,7 +294,7 @@ fn pagecache_strange_crash_2() {
}
for i in 0..1000 {
- let id = 2 + (i % 2);
+ let id = 3 + (i % 2);
let page_get = pc.get(id, &tx).unwrap();
assert!(!page_get.is_none());
let (key, _frags) = page_get.unwrap();
