summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-01-27 16:51:04 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2017-01-27 16:51:04 +0100
commit73742398cfffbe679de7e2e58b14f7c1ff3f2205 (patch)
tree1b0fec9ed2c8bd4dc307582e925147aad279f9e9 /searchcore
parent7a24043b2ac730f4c54e2cdb502b0020e584c0b8 (diff)
Optimise includes.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/fdispatch/common/timestat.h4
-rw-r--r--searchcore/src/vespa/searchcore/fdispatch/search/dataset_base.cpp23
-rw-r--r--searchcore/src/vespa/searchcore/fdispatch/search/dataset_base.h2
-rw-r--r--searchcore/src/vespa/searchcore/fdispatch/search/datasetcollection.cpp17
-rw-r--r--searchcore/src/vespa/searchcore/fdispatch/search/engine_base.cpp14
-rw-r--r--searchcore/src/vespa/searchcore/fdispatch/search/poss_count.h1
6 files changed, 19 insertions, 42 deletions
diff --git a/searchcore/src/vespa/searchcore/fdispatch/common/timestat.h b/searchcore/src/vespa/searchcore/fdispatch/common/timestat.h
index 66cab230589..ab22fd18e61 100644
--- a/searchcore/src/vespa/searchcore/fdispatch/common/timestat.h
+++ b/searchcore/src/vespa/searchcore/fdispatch/common/timestat.h
@@ -1,9 +1,9 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-// Copyright (C) 2003 Fast Search & Transfer ASA
-// Copyright (C) 2003 Overture Services Norway AS
+
#pragma once
+#include <cstdint>
class FastS_TimeStatTotals
{
diff --git a/searchcore/src/vespa/searchcore/fdispatch/search/dataset_base.cpp b/searchcore/src/vespa/searchcore/fdispatch/search/dataset_base.cpp
index 4bc535a3f29..34c8e75c5c0 100644
--- a/searchcore/src/vespa/searchcore/fdispatch/search/dataset_base.cpp
+++ b/searchcore/src/vespa/searchcore/fdispatch/search/dataset_base.cpp
@@ -1,21 +1,10 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-// Copyright (C) 1998-2003 Fast Search & Transfer ASA
-// Copyright (C) 2003 Overture Services Norway AS
-
-#include <vespa/fastos/fastos.h>
-#include <vespa/log/log.h>
-LOG_SETUP(".search.dataset_base");
-#include <vespa/searchlib/common/fslimits.h>
-#include <vespa/searchcore/util/log.h>
-#include <vespa/searchcore/fdispatch/search/configdesc.h>
-#include <vespa/searchcore/fdispatch/common/search.h>
-#include <vespa/vespalib/util/atomic.h>
-#include <vespa/searchcore/fdispatch/common/queryperf.h>
-
-#include <vespa/searchcore/fdispatch/search/datasetcollection.h>
-#include <vespa/searchcore/fdispatch/search/engine_base.h>
-#include <vespa/searchcore/fdispatch/search/dataset_base.h>
-#include <vespa/searchcore/fdispatch/search/nodemanager.h>
+
+#include "dataset_base.h"
+#include "configdesc.h"
+#include "datasetcollection.h"
+#include "engine_base.h"
+#include "nodemanager.h"
//--------------------------------------------------------------------------
diff --git a/searchcore/src/vespa/searchcore/fdispatch/search/dataset_base.h b/searchcore/src/vespa/searchcore/fdispatch/search/dataset_base.h
index 425712cf1c7..13201210b79 100644
--- a/searchcore/src/vespa/searchcore/fdispatch/search/dataset_base.h
+++ b/searchcore/src/vespa/searchcore/fdispatch/search/dataset_base.h
@@ -8,6 +8,8 @@
#include <vespa/searchcore/fdispatch/common/timestat.h>
#include <vespa/searchcore/util/log.h>
#include <atomic>
+#include <vespa/fastos/time.h>
+#include <vespa/fastos/cond.h>
class FastS_TimeKeeper;
diff --git a/searchcore/src/vespa/searchcore/fdispatch/search/datasetcollection.cpp b/searchcore/src/vespa/searchcore/fdispatch/search/datasetcollection.cpp
index baa324bae0b..af296cadf1c 100644
--- a/searchcore/src/vespa/searchcore/fdispatch/search/datasetcollection.cpp
+++ b/searchcore/src/vespa/searchcore/fdispatch/search/datasetcollection.cpp
@@ -1,20 +1,11 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-// Copyright (C) 1998-2003 Fast Search & Transfer ASA
-// Copyright (C) 2003 Overture Services Norway AS
-#include <vespa/fastos/fastos.h>
-#include <vespa/log/log.h>
-#include <vespa/fnet/fnet.h>
-#include <vespa/fastlib/io/bufferedfile.h>
-
-#include <vespa/searchcore/util/log.h>
-#include <vespa/searchlib/common/fslimits.h>
+#include "datasetcollection.h"
+#include "fnet_dataset.h"
#include <vespa/searchcore/fdispatch/common/search.h>
-#include <vespa/searchlib/parsequery/simplequerystack.h>
-#include <vespa/searchcore/fdispatch/search/fnet_dataset.h>
-#include <vespa/searchcore/fdispatch/search/datasetcollection.h>
-
+#include <vespa/fnet/fnet.h>
+#include <vespa/log/log.h>
LOG_SETUP(".search.datasetcollection");
FastS_DataSetBase *
diff --git a/searchcore/src/vespa/searchcore/fdispatch/search/engine_base.cpp b/searchcore/src/vespa/searchcore/fdispatch/search/engine_base.cpp
index 718d270ccd4..8332b42b1df 100644
--- a/searchcore/src/vespa/searchcore/fdispatch/search/engine_base.cpp
+++ b/searchcore/src/vespa/searchcore/fdispatch/search/engine_base.cpp
@@ -1,17 +1,11 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-// Copyright (C) 1998-2003 Fast Search & Transfer ASA
-// Copyright (C) 2003 Overture Services Norway AS
-#include <vespa/fastos/fastos.h>
+#include "engine_base.h"
+#include "configdesc.h"
+#include "plain_dataset.h"
+
#include <vespa/log/log.h>
LOG_SETUP(".search.engine_base");
-#include <vespa/searchcore/util/log.h>
-#include <vespa/vespalib/util/atomic.h>
-
-#include <vespa/searchcore/fdispatch/search/configdesc.h>
-#include <vespa/searchcore/fdispatch/search/plain_dataset.h>
-#include <vespa/searchcore/fdispatch/search/engine_base.h>
-#include <vespa/searchcore/fdispatch/common/appcontext.h>
//---------------------------------------------------------------------------
diff --git a/searchcore/src/vespa/searchcore/fdispatch/search/poss_count.h b/searchcore/src/vespa/searchcore/fdispatch/search/poss_count.h
index 0ba99117d4f..d7b0b565ebd 100644
--- a/searchcore/src/vespa/searchcore/fdispatch/search/poss_count.h
+++ b/searchcore/src/vespa/searchcore/fdispatch/search/poss_count.h
@@ -2,6 +2,7 @@
#pragma once
+#include <cstdint>
struct PossCount {
bool valid;