| 29 | } |
| 30 | |
| 31 | std::string CDBOpLogMap::ToString() const { |
| 32 | std::string str = ""; |
| 33 | for (auto itemOpLogs : mapDbOpLogs) { |
| 34 | str += strprintf("type:%s {", itemOpLogs.first); |
| 35 | for (auto iterDbLog : itemOpLogs.second) { |
| 36 | str += iterDbLog.ToString(); |
| 37 | str += ";"; |
| 38 | } |
| 39 | str += "}"; |
| 40 | } |
| 41 | return str; |
| 42 | } |
| 43 | |
| 44 | static leveldb::Options GetOptions(size_t nCacheSize) { |
| 45 | leveldb::Options options; |