MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / WriteBatch

Method WriteBatch

src/persistence/leveldbwrapper.cpp:89–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89bool 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
95int64_t CLevelDBWrapper::GetDbCount() {
96 leveldb::Iterator *pCursor = NewIterator();

Callers 1

WriteBatchFunction · 0.45

Calls 2

ThrowErrorFunction · 0.85
WriteMethod · 0.45

Tested by 1

WriteBatchFunction · 0.36