diff options
author | dgrogan@chromium.org <dgrogan@chromium.org@62dab493-f737-651d-591e-8d6aee1b9529> | 2011-05-28 00:53:58 +0000 |
---|---|---|
committer | dgrogan@chromium.org <dgrogan@chromium.org@62dab493-f737-651d-591e-8d6aee1b9529> | 2011-05-28 00:53:58 +0000 |
commit | 740d8b3d009462eed28a94ea516d667e735b0dfc (patch) | |
tree | 83959c625c77d893b34d4306e478a5ba38804dc5 /table | |
parent | da7990950787257cb312ca562ce5977749afc3e9 (diff) | |
download | leveldb-740d8b3d009462eed28a94ea516d667e735b0dfc.tar.gz |
Update from upstream @21551990
* Patch LevelDB to build for OSX and iOS
* Fix race condition in memtable iterator deletion.
* Other small fixes.
git-svn-id: https://leveldb.googlecode.com/svn/trunk@29 62dab493-f737-651d-591e-8d6aee1b9529
Diffstat (limited to 'table')
-rw-r--r-- | table/iterator.cc | 1 | ||||
-rw-r--r-- | table/iterator_wrapper.h | 11 |
2 files changed, 5 insertions, 7 deletions
diff --git a/table/iterator.cc b/table/iterator.cc index 4ddd55f..33bc8a2 100644 --- a/table/iterator.cc +++ b/table/iterator.cc @@ -3,7 +3,6 @@ // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "leveldb/iterator.h" -#include "util/logging.h" namespace leveldb { diff --git a/table/iterator_wrapper.h b/table/iterator_wrapper.h index 158d3a7..d8ca2b3 100644 --- a/table/iterator_wrapper.h +++ b/table/iterator_wrapper.h @@ -12,10 +12,6 @@ namespace leveldb { // This can help avoid virtual function calls and also gives better // cache locality. class IteratorWrapper { - private: - Iterator* iter_; - bool valid_; - Slice key_; public: IteratorWrapper(): iter_(NULL), valid_(false) { } explicit IteratorWrapper(Iterator* iter): iter_(NULL) { @@ -56,9 +52,12 @@ class IteratorWrapper { key_ = iter_->key(); } } -}; -} + Iterator* iter_; + bool valid_; + Slice key_; +}; +} // namespace leveldb #endif // STORAGE_LEVELDB_TABLE_ITERATOR_WRAPPER_H_ |