summaryrefslogtreecommitdiffstats
path: root/storageserver/src/apps/storaged/forcelink.cpp
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@yahoo-inc.com>2016-06-15 23:09:44 +0200
committerJon Bratseth <bratseth@yahoo-inc.com>2016-06-15 23:09:44 +0200
commit72231250ed81e10d66bfe70701e64fa5fe50f712 (patch)
tree2728bba1131a6f6e5bdf95afec7d7ff9358dac50 /storageserver/src/apps/storaged/forcelink.cpp
Publish
Diffstat (limited to 'storageserver/src/apps/storaged/forcelink.cpp')
-rw-r--r--storageserver/src/apps/storaged/forcelink.cpp30
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