aboutsummaryrefslogtreecommitdiffstats
path: root/storageserver/src/apps/storaged/forcelink.cpp
blob: c2ec2b1fd24d55cb1be15573a7cef290f9a225be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#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