diff options
author | Gil <mcg@google.com> | 2018-06-13 08:12:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-13 08:12:09 -0700 |
commit | afd897619fba10b881c4567d76793c6fdc60e93a (patch) | |
tree | 916cfceabe732ca375b82c7fe4e2cecfb265d251 /Firestore/Source/Local/FSTLevelDBMutationQueue.mm | |
parent | 51fb4d0ca4fae5ad30b53c9470f9e59c4678b034 (diff) |
Minor LevelDB cleanups (#1401)
* Add leveldb_transaction* to the CMake build
* Use std::unique_ptr for leveldb::DB pointers
Diffstat (limited to 'Firestore/Source/Local/FSTLevelDBMutationQueue.mm')
-rw-r--r-- | Firestore/Source/Local/FSTLevelDBMutationQueue.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Firestore/Source/Local/FSTLevelDBMutationQueue.mm b/Firestore/Source/Local/FSTLevelDBMutationQueue.mm index 3b4687c..94ab8a5 100644 --- a/Firestore/Source/Local/FSTLevelDBMutationQueue.mm +++ b/Firestore/Source/Local/FSTLevelDBMutationQueue.mm @@ -132,7 +132,7 @@ using leveldb::WriteOptions; self.metadata = metadata; } -+ (FSTBatchID)loadNextBatchIDFromDB:(std::shared_ptr<DB>)db { ++ (FSTBatchID)loadNextBatchIDFromDB:(DB *)db { // TODO(gsoltis): implement Prev() and SeekToLast() on LevelDbTransaction::Iterator, then port // this to a transaction. std::unique_ptr<Iterator> it(db->NewIterator(LevelDbTransaction::DefaultReadOptions())); |