aboutsummaryrefslogtreecommitdiffstats
path: root/slobrok/src/tests/mirrorapi/match_test.cpp
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-06-02 19:41:09 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2021-06-02 19:41:09 +0000
commit8564980847124346c5e7ada01babbd93aafd9255 (patch)
tree92c0e2b4ef1983676b9ae5f3f1672ad574fbdd39 /slobrok/src/tests/mirrorapi/match_test.cpp
parenta8b3591b02fa02520ceb1d00833215e4146a7a6b (diff)
Use a hash map for specs. If the request is a point lookup then just use a hash lookup.
If it is a wildcard lookup iterate as earlier on. Also use vespalib::stringref in interface to avoid conversion. Use vespalib:string in the hash map to locate string in object aswe are still on old abi.
Diffstat (limited to 'slobrok/src/tests/mirrorapi/match_test.cpp')
-rw-r--r--slobrok/src/tests/mirrorapi/match_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/slobrok/src/tests/mirrorapi/match_test.cpp b/slobrok/src/tests/mirrorapi/match_test.cpp
index d350718a671..0686390565a 100644
--- a/slobrok/src/tests/mirrorapi/match_test.cpp
+++ b/slobrok/src/tests/mirrorapi/match_test.cpp
@@ -4,7 +4,7 @@
class MatchTester : public slobrok::api::IMirrorAPI
{
- SpecList lookup(const std::string &) const override {
+ SpecList lookup(vespalib::stringref ) const override {
return SpecList();
}
uint32_t updates() const override { return 0; }