Comments (4)
这个和 @xupeilin 讨论过,硬链接没有高效的实现,比如我要对一个db做硬链接,只能遍历所有文件,逐个处理。
from bfs.
刚扫了一下目前tera中的实现,如果我没理解错的话,应该是找出splitkey,然后修改元数据表,但实际上leveldb并没有作改动?
而另一种方案是既修改tera中的元数据表,又修改leveldb中的manifest。
相对于第一种方案来讲,第二种方案的优势在于什么?因为也是相当于只修改的元数据,但是sst文件中的元数据并没有变化,查找某个kv对时,仍然先需要在整个sst文件的block元信息中进行查找(不知道这里我对leveldb的理解对不对……目前正在读其源码)
from bfs.
没发现第二种有什么优势,既然修改元数据就可以了,就没必要修改manifest了
毕竟修改manifest这个操作,很难做到原子的
from bfs.
了解~
from bfs.
Related Issues (20)
- Support S3 compatible interface
- sdk bfs_get、bfs_put返回值问题
- bfs_client can not put file HOT 2
- windows HOT 1
- Can't change mount_point owner HOT 3
- metaserver无法编译的问题 HOT 1
- SDK中的bfs_change_replica_num接口无法使用 HOT 4
- BFS 文件读写没有权限认证,用户认证机制吗 HOT 4
- 代码无法编译 HOT 1
- 如何实现对BFS上非空文件的写操作? HOT 4
- bfs_chmod()接口一直返回 -1,bad parameter. HOT 1
- 请问src/sdk/file_impl.h中FileImpl::located_blocks_在哪儿初始化的,FileImpl::Pread直接就使用了?
- 接口实现问题
- libunwind-0.99编译失败 HOT 4
- 请问如何支持spark框架 HOT 1
- 怎么做文件备份呢?
- Q: bfs 的副本一致性模型是什么?
- 无法编译,显示缺少#include "config.h"
- 无法编译,显示缺少#include "config.h"
- bai
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 bfs.