summaryrefslogtreecommitdiffstats
path: root/searchcorespi
diff options
context:
space:
mode:
Diffstat (limited to 'searchcorespi')
-rw-r--r--searchcorespi/src/vespa/searchcorespi/index/imemoryindex.h4
-rw-r--r--searchcorespi/src/vespa/searchcorespi/index/index_manager_explorer.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/searchcorespi/src/vespa/searchcorespi/index/imemoryindex.h b/searchcorespi/src/vespa/searchcorespi/index/imemoryindex.h
index f7eed750842..e25a3ef7b64 100644
--- a/searchcorespi/src/vespa/searchcorespi/index/imemoryindex.h
+++ b/searchcorespi/src/vespa/searchcorespi/index/imemoryindex.h
@@ -5,7 +5,7 @@
#include <vespa/searchcommon/common/schema.h>
#include <vespa/searchcorespi/index/indexsearchable.h>
#include <vespa/searchlib/common/serialnum.h>
-#include <vespa/searchlib/util/memoryusage.h>
+#include <vespa/vespalib/util/memoryusage.h>
#include <vespa/vespalib/stllike/string.h>
namespace search
@@ -35,7 +35,7 @@ struct IMemoryIndex : public searchcorespi::IndexSearchable {
/**
* Returns the memory usage of this memory index.
*/
- virtual search::MemoryUsage getMemoryUsage() const = 0;
+ virtual vespalib::MemoryUsage getMemoryUsage() const = 0;
/**
* Returns the memory usage of an empty version of this memory index.
diff --git a/searchcorespi/src/vespa/searchcorespi/index/index_manager_explorer.cpp b/searchcorespi/src/vespa/searchcorespi/index/index_manager_explorer.cpp
index 4764aeef8ee..63a63b0159d 100644
--- a/searchcorespi/src/vespa/searchcorespi/index/index_manager_explorer.cpp
+++ b/searchcorespi/src/vespa/searchcorespi/index/index_manager_explorer.cpp
@@ -26,7 +26,7 @@ insertDiskIndex(Cursor &arrayCursor, const DiskIndexStats &diskIndex)
}
void
-insertMemoryUsage(Cursor &object, const search::MemoryUsage &usage)
+insertMemoryUsage(Cursor &object, const vespalib::MemoryUsage &usage)
{
Cursor &memory = object.setObject("memoryUsage");
memory.setLong("allocatedBytes", usage.allocatedBytes());