aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2019-05-14 15:45:10 +0200
committerTor Egge <Tor.Egge@broadpark.no>2019-05-14 15:45:10 +0200
commit924c2f3c99bdde0acda53ca004d5620f7eb6cd46 (patch)
treec54a4b45a2bd33c785ccca5837284c9a0ae027e3 /searchlib
parent77d73f74f9d8e83a9a4bee2d5add60520c25a035 (diff)
Specify value to store in atomic.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/engine/proto_rpc_adapter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/engine/proto_rpc_adapter.h b/searchlib/src/vespa/searchlib/engine/proto_rpc_adapter.h
index 77b26b743f2..2ddfad0819c 100644
--- a/searchlib/src/vespa/searchlib/engine/proto_rpc_adapter.h
+++ b/searchlib/src/vespa/searchlib/engine/proto_rpc_adapter.h
@@ -39,7 +39,7 @@ public:
MonitorServer &monitor_server,
FRT_Supervisor &orb);
- void set_online() { _online.store(std::memory_order_release); }
+ void set_online() { _online.store(true, std::memory_order_release); }
bool is_online() const { return _online.load(std::memory_order_acquire); }
void rpc_search(FRT_RPCRequest *req);