Project

General

Profile

« Previous | Next » 

Revision 38777

moving towards mongodb driver 3.0.3

View differences:

MongoSetCollection.java
160 160

  
161 161
	private void ensureIndexesOnSets(final String dbName) {
162 162
		DBObject onBackground = new BasicDBObject("background", true);
163
		this.getSetsCollection(dbName).ensureIndex(new BasicDBObject("spec", 1), onBackground);
164
		this.getSetsCollection(dbName).ensureIndex(new BasicDBObject("fromConfiguration", 1), onBackground);
163
		this.getSetsCollection(dbName).createIndex(new BasicDBObject("spec", 1), onBackground);
164
		this.getSetsCollection(dbName).createIndex(new BasicDBObject("fromConfiguration", 1), onBackground);
165 165
	}
166 166

  
167 167
	private void ensureIndexesOnCount(final String dbName) {
168 168
		DBObject index = BasicDBObjectBuilder.start("spec", 1).add("mdPrefix", 1).get();
169
		this.getSetsCountCollection(dbName).ensureIndex(index, new BasicDBObject("background", true));
169
		this.getSetsCountCollection(dbName).createIndex(index, new BasicDBObject("background", true));
170 170
	}
171 171

  
172 172
	public DBCollection getSetsCollection(final String dbName) {

Also available in: Unified diff