Removed automatic _id creation.
This commit is contained in:
parent
7669900126
commit
c3b1225605
|
@ -13,7 +13,6 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
require 'socket'
|
||||
require 'mongo/objectid'
|
||||
require 'mongo/collection'
|
||||
require 'mongo/message'
|
||||
require 'mongo/query'
|
||||
|
@ -163,7 +162,6 @@ module XGen
|
|||
end
|
||||
|
||||
def insert_into_db(collection_name, objects)
|
||||
objects.each { |o| o['_id'] ||= ObjectID.new }
|
||||
# TODO synchronize
|
||||
objects.each { |o| send_to_db(InsertMessage.new(@name, collection_name, o)) }
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue