summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2016-08-26 17:37:06 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2016-08-26 17:37:06 +0000
commit472e9cedcc7fe90161fae20bdfe1ac211d21ca58 (patch)
tree3b1b7bb9782b7c7876aabda87aadfe21f70159d7 /searchlib
parent8602ee0264b000359f4f4579a58a1caec38326b8 (diff)
typedef -> using
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/docstore/documentstore.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/searchlib/src/vespa/searchlib/docstore/documentstore.h b/searchlib/src/vespa/searchlib/docstore/documentstore.h
index 720c40f989e..d337f404f37 100644
--- a/searchlib/src/vespa/searchlib/docstore/documentstore.h
+++ b/searchlib/src/vespa/searchlib/docstore/documentstore.h
@@ -232,19 +232,18 @@ private:
const document::CompressionConfig _compression;
};
bool useCache() const { return (_cache->capacityBytes() != 0) && (_cache->capacity() != 0); }
- typedef vespalib::CacheParam< vespalib::LruParam<DocumentIdT, Value>,
- BackingStore,
- vespalib::zero<DocumentIdT>,
- vespalib::size<Value> > CacheParams;
- typedef vespalib::cache<CacheParams> Cache;
- using VisitCache=docstore::VisitCache;
+ using CacheParams = vespalib::CacheParam< vespalib::LruParam<DocumentIdT, Value>,
+ BackingStore,
+ vespalib::zero<DocumentIdT>,
+ vespalib::size<Value> >;
+ using Cache = vespalib::cache<CacheParams>;
+ using VisitCache = docstore::VisitCache;
Config _config;
IDataStore & _backingStore;
BackingStore _store;
std::shared_ptr<Cache> _cache;
std::shared_ptr<VisitCache> _visitCache;
- mutable volatile uint64_t _uncached_lookups;
};
} // namespace search