aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/apps/tests/persistenceconformance_test.cpp
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@yahoo-inc.com>2016-11-02 12:46:11 +0000
committerTor Egge <Tor.Egge@yahoo-inc.com>2016-11-03 11:32:28 +0000
commitc19ca31b961511a5ddf3261658ba83dfc8c1e1ad (patch)
tree22c5290c8e5cde44338e0665da01f4b4ecbff1ae /searchcore/src/apps/tests/persistenceconformance_test.cpp
parent872727070b589f776b7a24d5a33581dc8114ae31 (diff)
Flush attribute to memory first if attribute saver has a
read guard and we are using a spinning disk. This reduces the time the read guard is held (and corresponding extra long term memory usage due to large hold lists) at the cost of a temporary memory usage spike while flushing attribute.
Diffstat (limited to 'searchcore/src/apps/tests/persistenceconformance_test.cpp')
-rw-r--r--searchcore/src/apps/tests/persistenceconformance_test.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/searchcore/src/apps/tests/persistenceconformance_test.cpp b/searchcore/src/apps/tests/persistenceconformance_test.cpp
index c9ce9b88477..a988ed99ace 100644
--- a/searchcore/src/apps/tests/persistenceconformance_test.cpp
+++ b/searchcore/src/apps/tests/persistenceconformance_test.cpp
@@ -19,6 +19,7 @@ LOG_SETUP("persistenceconformance_test");
#include <vespa/searchlib/transactionlog/translogserver.h>
#include <tests/proton/common/dummydbowner.h>
#include <vespa/vespalib/io/fileutil.h>
+#include <vespa/vespalib/util/mock_hw_info.h>
using namespace config;
using namespace proton;
@@ -188,7 +189,8 @@ public:
_config_stores.getConfigStore(
docType.toString()),
std::make_shared<vespalib::ThreadStackExecutor>
- (16, 128 * 1024)));
+ (16, 128 * 1024),
+ std::make_shared<vespalib::MockHwInfo>()));
}
};