Skip to content

Commit 9fd1307

Browse files
committed
Refactor index management and enhance transaction support in OnDiskIndexManager
1 parent 2a2e761 commit 9fd1307

File tree

6 files changed

+684
-150
lines changed

6 files changed

+684
-150
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ fn main() {
8989
### Critical for Production (Highest Priority)
9090

9191
#### Real-time Index Management
92-
- [ ] Real-time index updates with ACID compliance
92+
- [x] Real-time index updates with ACID compliance
9393
- [ ] Index consistency verification
9494
- [ ] Atomic index operations
9595
- [ ] Index recovery mechanisms

src/indexes/btree/mod.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ impl BTreeIndex {
3232
}
3333

3434
pub fn search(&self, value: Vec<u8>) -> Option<&HashSet<usize>> {
35-
self.index.get(&value)
35+
println!("BTreeIndex::search - Searching for value: {:?}", value);
36+
println!("BTreeIndex::search - Current index contents: {:?}", self.index);
37+
let result = self.index.get(&value);
38+
println!("BTreeIndex::search - Found result: {:?}", result);
39+
result
3640
}
3741

3842
pub fn range_search(&self, start: Vec<u8>, end: Vec<u8>) -> HashSet<usize> {

0 commit comments

Comments
 (0)