s->pools.erase(pool);
});
luaCtx.registerFunction<uint64_t(DownstreamState::*)()const>("getOutstanding", [](const DownstreamState& s) { return s.outstanding.load(); });
+ luaCtx.registerFunction<uint64_t(DownstreamState::*)()const>("getDrops", [](const DownstreamState& s) { return s.reuseds.load(); });
luaCtx.registerFunction<double(DownstreamState::*)()const>("getLatency", [](const DownstreamState& s) { return s.latencyUsec; });
luaCtx.registerFunction("isUp", &DownstreamState::isUp);
luaCtx.registerFunction("setDown", &DownstreamState::setDown);
:returns: A string containing the server name if any plus the server address and port
+ .. method:: Server:getDrops() -> int
+
+ .. versionadded:: 1.6.0
+
+ Get the number of dropped queries for this server.
+
+ :returns: The number of outstanding queries
+
.. method:: Server:getOutstanding() -> int
Get the number of outstanding queries for this server.