Comments (1)
Hey @al8n sorry for the silence on my end. I looked at this the day you filed the issue but forgot to fill you in on what's going on. The issue is you're deleting things from the bucket that you're iterating over. The cursor remembers the index of the item you were on last, but when an item is deleted the indices for each key shift by one to the left. So on the next iteration of the loop the index increments by one, but that skips the element that you were expecting to be next.
You would run into a similar issue if you were to delete items from a vector in a for loop using an incrementing index.
This is definitely something that should be fixed, but no obvious solution is jumping out at me. I'm open to any ideas if you have some!
from jammdb.
Related Issues (19)
- Segmentation fault when boxing cursor HOT 4
- the trait `ResponseError` is not implemented for `jammdb::Error` HOT 6
- [E0596] cannot borrow data in an Arc as mutable. HOT 4
- [question] Is there way to list all the buckets HOT 5
- panicked at 'attempt to subtract with overflow' HOT 1
- panicked at 'assertion failed: self.meta.root_page == page_id || self.page_parents.contains_key(&page_id)' HOT 12
- Power outage tolerance HOT 5
- database Design HOT 5
- Allow users to specify mmap and file flags on Unix
- Simple put-and-get example uses writable=true for get HOT 1
- Describe complexity bounds HOT 1
- Async version HOT 2
- Misaligned ptr HOT 3
- Read-write operations HOT 2
- API safety and soundness HOT 2
- can't open boltdb file HOT 1
- Crashes during multithreaded workload HOT 4
- [Suggestion] Type state pattern for transactions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jammdb.