diff options
Diffstat (limited to 'storageserver/src/apps/storaged/forcelink.cpp')
-rw-r--r-- | storageserver/src/apps/storaged/forcelink.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/storageserver/src/apps/storaged/forcelink.cpp b/storageserver/src/apps/storaged/forcelink.cpp new file mode 100644 index 00000000000..2c628644e82 --- /dev/null +++ b/storageserver/src/apps/storaged/forcelink.cpp @@ -0,0 +1,30 @@ +// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. + +#include <vespa/fastos/fastos.h> +#include <vespa/document/base/forcelink.h> +#include <vespa/documentapi/documentapi.h> +#include <vespa/searchlib/aggregation/forcelink.hpp> +#include <vespa/searchlib/expression/forcelink.hpp> + +/* Here is code that initializes a lot of stuff to force it to be linked */ +namespace search { + struct ForceLink { + ForceLink() { + if (time(NULL) == 7) { + // grouping stuff + forcelink_searchlib_aggregation(); + forcelink_searchlib_expression(); + } + } + }; +} + +namespace storage { + +void serverForceLink() +{ + document::ForceLink documentForce; + search::ForceLink searchForce; +} + +} // namespace storage |