private EnsureIndex ( MongoDB.Index index ) : string | ||
index | MongoDB.Index | |
리턴 | string |
public string EnsureIndex(Index index)
{
/* Since Mongo 1.1.3 the insert function on the server check whether
* the index already exists in pdfile.cpp so tracking indexes here isn't
* worth the effort. So here, Ensure can just be an alias for Create.
*/
return CreateIndex(index);
}