From 76b4d824bdc210984f720d8166373947e6f333f1 Mon Sep 17 00:00:00 2001 From: jtozo Date: Fri, 16 Oct 2020 17:13:36 -0300 Subject: [PATCH] Removing no_cursor_timeout Thsi flag isn't available on newer versions of mongodb --- lib/cve_server/db/mongo.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cve_server/db/mongo.rb b/lib/cve_server/db/mongo.rb index 06aeb451..ee0c2694 100644 --- a/lib/cve_server/db/mongo.rb +++ b/lib/cve_server/db/mongo.rb @@ -44,7 +44,7 @@ def drop_all end def map_reduce(mapper, reducer, options = {}) - db[@collection].find({}, no_cursor_timeout: true).map_reduce(mapper, reducer, options).execute + db[@collection].find({}).map_reduce(mapper, reducer, options).execute end def remove_id(record)