CurveFS ChunkID持久化curvefs/src/mds/mds_services.h MdsServiceImp类中增加 ChunkIDGenerator 类对象,方法 AllocateS3Chunk 调用 ChunkIDGenerator 对象的 GenChunkID 方法; 6. ChunkIDGenerator 类 1. 构造函数 初始化 2. init 函数:用于初始化或者更改 ChunkIdAllocatorImpl 3. storeKey 被删除 4. 其他 3. storeKey 在 etcd 上的 Value 不可解码 2. 返回一个新的chunkid ## 方案 class ChunkIDGenerator { client_; // etcd chunkIdStoreKey; // chunkid 存储在etcd上的 key nextId; // 下一个可分配的 chunkID0 码力 | 3 页 | 79.38 KB | 1 年前3
共 1 条
- 1













