diff options
Diffstat (limited to 'components/leveldb_proto/leveldb_database.h')
-rw-r--r-- | components/leveldb_proto/leveldb_database.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/components/leveldb_proto/leveldb_database.h b/components/leveldb_proto/leveldb_database.h index faa8199..67d0707 100644 --- a/components/leveldb_proto/leveldb_database.h +++ b/components/leveldb_proto/leveldb_database.h @@ -15,6 +15,7 @@ namespace leveldb { class DB; +class Env; struct Options; } // namespace leveldb @@ -37,6 +38,10 @@ class LevelDB { private: DFAKE_MUTEX(thread_checker_); + + // The declaration order of these members matters: |db_| depends on |env_| and + // therefore has to be destructed first. + scoped_ptr<leveldb::Env> env_; scoped_ptr<leveldb::DB> db_; }; |