diff options
author | Haavard <havardpe@yahoo-inc.com> | 2017-04-19 13:19:59 +0000 |
---|---|---|
committer | Haavard <havardpe@yahoo-inc.com> | 2017-04-19 13:19:59 +0000 |
commit | 761a941d3a6eff29041de74ef4d5a562aaf16c0a (patch) | |
tree | ae77e6d57838fce512ba7e991d2e67882109fee5 /searchcore | |
parent | 934767f4381ee8bba5724314286f184988960faa (diff) |
remove FastOS_Socket::getHostName
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/server/proton.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/server/proton.cpp b/searchcore/src/vespa/searchcore/proton/server/proton.cpp index 6c76cbb9753..059679ba2b4 100644 --- a/searchcore/src/vespa/searchcore/proton/server/proton.cpp +++ b/searchcore/src/vespa/searchcore/proton/server/proton.cpp @@ -30,6 +30,7 @@ #include <vespa/vespalib/data/slime/slime.h> #include <vespa/vespalib/io/fileutil.h> #include <vespa/vespalib/util/closuretask.h> +#include <vespa/vespalib/util/host_name.h> #include <vespa/vespalib/util/random.h> #include <vespa/searchcore/proton/common/hw_info_sampler.h> #include <vespa/searchcore/proton/reference/document_db_reference_registry.h> @@ -100,7 +101,7 @@ Proton::ProtonFileHeaderContext::ProtonFileHeaderContext(const Proton &proton_, _cluster(), _pid(getpid()) { - _hostName = FastOS_Socket::getHostName(); + _hostName = vespalib::HostName::get(); assert(!_hostName.empty()); } |