Comments (2)
bplus_tree.c
只负责删除一个结点的时候才会释放它(non_leaf_delete
and leaf_delete
),我在demo里面并没有释放所有结点。你可以用范围删除所有结点。
from bplustree.
感谢。看代码可以知道,只要我们删除了所有的叶子结点,那么B+树就自然的已经销毁了。
但我觉得在 deinit 接口中,最好还是能把所有的结点删除。
想象一种使用情景就是我在程序的一个步骤中需要使用 B+ 树,后面就无需用到了,用户在使用完后也没有逐个删除叶子结点。
from bplustree.
Related Issues (15)
- a segment fault HOT 1
- 执行./coverage_build.sh 提示 node_seek: Assertion `len == _block_size' failed. HOT 21
- 支持单用户写入,多用户查询吗? HOT 8
- in-memory 分支 bplus_tree_get_range 有bug HOT 1
- excute coverage_build.sh failed in macos HOT 7
- add some code annotation in head file(bplustree.h) HOT 1
- 分裂策略是否有问题? HOT 3
- Is there any way to restore the transactions from the database when the program is broken? HOT 2
- It seems the non_leaf_split_right1 function has a bug. HOT 1
- 请问value可以自定义类型吗? HOT 6
- 请问可以直接在C++里使用这个代码吗? HOT 3
- 请教一个问题bplus_tree_insert内部函数的实现 HOT 12
- 执行demo_build.sh 提示 statement may fall through HOT 2
- how to do range search? help wanted HOT 2
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 bplustree.