摘要: 1.DBImpl::Open1StatusDB::Open(constOptions&options,conststd::string&dbname,2DB**dbptr){3*dbptr=NULL;45DBImpl*impl=newDBImpl(options,dbname);6impl->mut... 阅读全文
posted @ 2015-05-11 17:34 Lawrence.Lau 阅读(906) 评论(0) 推荐(0) 编辑
摘要: 1.源码1StatusDB::Open(constOptions&options,conststd::string&dbname,2DB**dbptr){3*dbptr=NULL;45DBImpl*impl=newDBImpl(options,dbname);6impl->mutex_.Lock()... 阅读全文
posted @ 2015-05-11 17:33 Lawrence.Lau 阅读(402) 评论(0) 推荐(0) 编辑
摘要: 基本用法数据结构classDBImpl : public DB{private: struct CompactionState; struct Writer;// Information kept for every waiting writer Env* const env_; // 文件,目... 阅读全文
posted @ 2015-05-11 17:33 Lawrence.Lau 阅读(1120) 评论(0) 推荐(0) 编辑