| 87 | } |
| 88 | |
| 89 | bool CLevelDBWrapper::WriteBatch(CLevelDBBatch &batch, bool fSync) { |
| 90 | leveldb::Status status = pdb->Write(fSync ? syncoptions : writeoptions, &batch.batch); |
| 91 | ThrowError(status); |
| 92 | return true; |
| 93 | } |
| 94 | |
| 95 | int64_t CLevelDBWrapper::GetDbCount() { |
| 96 | leveldb::Iterator *pCursor = NewIterator(); |