sealed case classDeleteIndex(collection: String, index: String) extends Command[Int] with Product with Serializable
20-May-2014
The following code is a workaround for a bug we found in reactivemongo indexesManager.delete() method.
20-May-2014
The following code is a workaround for a bug we found in reactivemongo indexesManager.delete() method.
The issue only happens with the current version of mongodb (2.6.1) but not with
the version the we have on higher environments including production (2.4.8). The patch is intentionally left here
so that it can be applied again if mongodb is upgraded and the bug is not fixed in reactivemongo. In which case, the call to
indexesManager.delete() in the ensureIndexes() method of this class should be replaced with the following:
20-May-2014 The following code is a workaround for a bug we found in reactivemongo indexesManager.delete() method. The issue only happens with the current version of mongodb (2.6.1) but not with the version the we have on higher environments including production (2.4.8). The patch is intentionally left here so that it can be applied again if mongodb is upgraded and the bug is not fixed in reactivemongo. In which case, the call to indexesManager.delete() in the ensureIndexes() method of this class should be replaced with the following:
deleted <- collection.db.command(DeleteIndex(collection.name, idxToUpdate.get.eventualName))