From a75d435d1de55530ead02bbd51dd4424bef50330 Mon Sep 17 00:00:00 2001 From: Chris Mumford Date: Thu, 11 Dec 2014 08:02:45 -0800 Subject: [PATCH] Clean up layering of storage/leveldb/... With these changes, this package should be properly cleaned up and not require any further changes. --- db/snapshot.h | 1 + db/write_batch_internal.h | 1 + table/iterator_wrapper.h | 3 +++ 3 files changed, 5 insertions(+) diff --git a/db/snapshot.h b/db/snapshot.h index e7f8fd2c37cf8a..6ed413c42d4f4a 100644 --- a/db/snapshot.h +++ b/db/snapshot.h @@ -5,6 +5,7 @@ #ifndef STORAGE_LEVELDB_DB_SNAPSHOT_H_ #define STORAGE_LEVELDB_DB_SNAPSHOT_H_ +#include "db/dbformat.h" #include "leveldb/db.h" namespace leveldb { diff --git a/db/write_batch_internal.h b/db/write_batch_internal.h index 310a3c891220bb..9448ef7b21c3af 100644 --- a/db/write_batch_internal.h +++ b/db/write_batch_internal.h @@ -5,6 +5,7 @@ #ifndef STORAGE_LEVELDB_DB_WRITE_BATCH_INTERNAL_H_ #define STORAGE_LEVELDB_DB_WRITE_BATCH_INTERNAL_H_ +#include "db/dbformat.h" #include "leveldb/write_batch.h" namespace leveldb { diff --git a/table/iterator_wrapper.h b/table/iterator_wrapper.h index 9e16b3dbedebe6..f410c3fabe6104 100644 --- a/table/iterator_wrapper.h +++ b/table/iterator_wrapper.h @@ -5,6 +5,9 @@ #ifndef STORAGE_LEVELDB_TABLE_ITERATOR_WRAPPER_H_ #define STORAGE_LEVELDB_TABLE_ITERATOR_WRAPPER_H_ +#include "leveldb/iterator.h" +#include "leveldb/slice.h" + namespace leveldb { // A internal wrapper class with an interface similar to Iterator that