2014年4月9日

leveldb 合并写详解

摘要: leveldb的write代码初看瞎搞一堆,细看则实为短小精悍。 1 Status DBImpl::Write(const WriteOptions& options, WriteBatch* my_batch) { 2 // -----A begin------- 3 Writer w(&mutex_); 4 w.batch = my_batch; 5 w.sync = options.sync; 6 w.done = false; 7 // -----A end -------- 8 9 10 // -----B begin------- ... 阅读全文

posted @ 2014-04-09 21:13 ewouldblock7 阅读(1545) 评论(0) 推荐(0) 编辑

导航