Skip to content
Browse files

Merge pull request #13 from kenn/mongo140compat

Infinite loop of send_initial_query when used with mongo ruby driver 1.4.0
  • Loading branch information...
2 parents ac4067d + 552c290 commit 694e43044d4f3e04a02875e7c608d793f0e7b6b5 @gnarg gnarg committed Oct 17, 2011
Showing with 0 additions and 2 deletions.
  1. +0 −2 lib/rpm_contrib/instrumentation/mongo.rb
View
2 lib/rpm_contrib/instrumentation/mongo.rb
@@ -37,8 +37,6 @@ def instrument_with_newrelic_trace(name, payload = {}, &blk)
include NewRelic::Agent::MethodTracer
def refresh_with_newrelic_trace
- return if send_initial_query || @cursor_id.zero? # don't double report the initial query
-
trace_execution_scoped("Database/#{collection.name}/refresh") do
refresh_without_newrelic_trace
end

0 comments on commit 694e430

Please sign in to comment.
Something went wrong with that request. Please try again.