lib/mongo/operation/shared/executable.rb in mongo-2.10.0 vs lib/mongo/operation/shared/executable.rb in mongo-2.10.1
- old
+ new
@@ -18,22 +18,26 @@
# Shared executable behavior of operations.
#
# @since 2.5.2
module Executable
+ include ResponseHandling
+
def do_execute(server)
unpin_maybe(session) do
add_error_labels do
- get_result(server).tap do |result|
- process_result(result, server)
+ add_server_diagnostics(server) do
+ get_result(server).tap do |result|
+ process_result(result, server)
+ end
end
end
end
end
def execute(server)
do_execute(server).tap do |result|
- validate_result(result)
+ validate_result(result, server)
end
end
private