diff options
author | Yuri Gorshenin <y@maps.me> | 2018-01-19 14:11:51 +0300 |
---|---|---|
committer | Tatiana Yan <tatiana.kondakova@gmail.com> | 2018-01-19 16:10:31 +0300 |
commit | a0ff36bf4869eaad9872c77c7d043649a1a87578 (patch) | |
tree | f010ec4fa1aa094d9f9b6ef72652daaf66d086fa /indexer/scale_index.hpp | |
parent | 945a878c54377d108075ae09376993227b3c315b (diff) |
[indexer] Add ability to mmap scales index.
Diffstat (limited to 'indexer/scale_index.hpp')
-rw-r--r-- | indexer/scale_index.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indexer/scale_index.hpp b/indexer/scale_index.hpp index a8104ac92e..029dae15c1 100644 --- a/indexer/scale_index.hpp +++ b/indexer/scale_index.hpp @@ -32,10 +32,12 @@ public: typedef ReaderT ReaderType; ScaleIndex() = default; + ScaleIndex(ReaderT const & reader, IndexFactory const & factory) { Attach(reader, factory); } + ~ScaleIndex() { Clear(); |