From 3f36f5467de4c191fa2903743e5a210420e9d49a Mon Sep 17 00:00:00 2001 From: Greg Soltis Date: Fri, 30 Mar 2018 10:18:25 -0700 Subject: Drop FSTWriteGroup (#986) * Drop write group from remote document change buffer * Unwind some group dependendencies in local store * Write group dropped from local store * Drop write group from mutation queue tests * Drop write group usage from query cache tests * Drop write groups from remote document cache tests * Drop write groups from remote document change buffer tests * Drop write groups and the write group tracker * Style * Put the action in transaction * Merge master, fix test * Fix some compiler warnings but mostly trigger travis * Responses to feedback --- Firestore/core/src/firebase/firestore/local/leveldb_transaction.cc | 6 ++++-- Firestore/core/src/firebase/firestore/local/leveldb_transaction.h | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'Firestore/core/src/firebase/firestore/local') diff --git a/Firestore/core/src/firebase/firestore/local/leveldb_transaction.cc b/Firestore/core/src/firebase/firestore/local/leveldb_transaction.cc index f034b19..d84d441 100644 --- a/Firestore/core/src/firebase/firestore/local/leveldb_transaction.cc +++ b/Firestore/core/src/firebase/firestore/local/leveldb_transaction.cc @@ -143,6 +143,7 @@ bool LevelDbTransaction::Iterator::Valid() { } LevelDbTransaction::LevelDbTransaction(DB* db, + absl::string_view label, const ReadOptions& read_options, const WriteOptions& write_options) : db_(db), @@ -150,7 +151,8 @@ LevelDbTransaction::LevelDbTransaction(DB* db, deletions_(), read_options_(read_options), write_options_(write_options), - version_(0) { + version_(0), + label_(std::string{label}) { } const ReadOptions& LevelDbTransaction::DefaultReadOptions() { @@ -225,7 +227,7 @@ void LevelDbTransaction::Commit() { } std::string LevelDbTransaction::ToString() { - std::string dest("