Don't reject read requests until the storage server durability lag gets large enough

This commit is contained in:
Trevor Clinkenbeard 2019-06-05 14:15:57 -07:00
parent d1d98f298a
commit 8dbb231f33
1 changed files with 1 additions and 1 deletions

View File

@ -640,7 +640,7 @@ public:
template<class Request, class HandleFunction>
Future<Void> readGuard(const Request& request, const HandleFunction& fun) {
auto rate = currentRate();
if (rate < 0.999 && g_random->random01() > rate) {
if (rate < 0.8 && g_random->random01() > rate) {
//request.error = future_version();
sendErrorWithPenalty(request.reply, server_overloaded(), getPenalty());
return Void();