aboutsummaryrefslogtreecommitdiffstats
path: root/storage/src/tests/bucketdb/initializertest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'storage/src/tests/bucketdb/initializertest.cpp')
-rw-r--r--storage/src/tests/bucketdb/initializertest.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/storage/src/tests/bucketdb/initializertest.cpp b/storage/src/tests/bucketdb/initializertest.cpp
index cb76876c24e..2141dbf4b53 100644
--- a/storage/src/tests/bucketdb/initializertest.cpp
+++ b/storage/src/tests/bucketdb/initializertest.cpp
@@ -17,10 +17,13 @@
#include <vespa/vdstestlib/cppunit/macros.h>
#include <vespa/storage/bucketdb/lockablemap.hpp>
#include <vespa/vdstestlib/cppunit/dirconfig.hpp>
+#include <vespa/document/bucket/fixed_bucket_spaces.h>
#include <vespa/log/log.h>
LOG_SETUP(".test.bucketdb.initializing");
+using document::FixedBucketSpaces;
+
namespace storage {
typedef uint16_t PartitionId;
@@ -444,10 +447,12 @@ struct FakePersistenceLayer : public StorageLink {
<< " for which we should not get a request";
fatal(ost.str());
} else {
- for (DiskData::const_iterator it2 = it->second.begin();
- it2 != it->second.end(); ++it2)
- {
- reply->getBuckets().push_back(it2->first);
+ if (cmd.getBucket().getBucketSpace() == FixedBucketSpaces::default_space()) {
+ for (DiskData::const_iterator it2 = it->second.begin();
+ it2 != it->second.end(); ++it2)
+ {
+ reply->getBuckets().push_back(it2->first);
+ }
}
}
if (!fatalError.empty()) {