lib/mongo/operation/drop_index/op_msg.rb in mongo-2.17.4 vs lib/mongo/operation/drop_index/op_msg.rb in mongo-2.18.0.beta1
- old
+ new
@@ -28,10 +28,14 @@
include ExecutableTransactionLabel
private
def selector(connection)
- { :dropIndexes => coll_name, :index => index_name }
+ {
+ :dropIndexes => coll_name,
+ :index => index_name,
+ :comment => spec[:comment],
+ }.compact
end
end
end
end
end