Don't reject read requests until the storage server durability lag gets large enough
This commit is contained in:
parent
d1d98f298a
commit
8dbb231f33
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue