| 200 | } |
| 201 | |
| 202 | bool BaseIndex::Commit() |
| 203 | { |
| 204 | CDBBatch batch(GetDB()); |
| 205 | if (!CommitInternal(batch) || !GetDB().WriteBatch(batch)) { |
| 206 | return error("%s: Failed to commit latest %s state", __func__, GetName()); |
| 207 | } |
| 208 | return true; |
| 209 | } |
| 210 | |
| 211 | bool BaseIndex::CommitInternal(CDBBatch& batch) |
| 212 | { |
nothing calls this directly
no test coverage detected