From afd897619fba10b881c4567d76793c6fdc60e93a Mon Sep 17 00:00:00 2001 From: Gil Date: Wed, 13 Jun 2018 08:12:09 -0700 Subject: Minor LevelDB cleanups (#1401) * Add leveldb_transaction* to the CMake build * Use std::unique_ptr for leveldb::DB pointers --- Firestore/Source/Local/FSTLevelDBMutationQueue.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Firestore/Source/Local/FSTLevelDBMutationQueue.mm') 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 { ++ (FSTBatchID)loadNextBatchIDFromDB:(DB *)db { // TODO(gsoltis): implement Prev() and SeekToLast() on LevelDbTransaction::Iterator, then port // this to a transaction. std::unique_ptr it(db->NewIterator(LevelDbTransaction::DefaultReadOptions())); -- cgit v1.2.3