public void createIndex(DBServer dbSvr, string url) { string name = ""; for (int i = 0; i < DbName.DB_NAME_MAX; i++) { MongodbHelper m = dbSvr.getDB(i); if (m != null) { name = DBServer.m_dbName[i]; if (m_index.ContainsKey(name)) { m_index[name].createIndex(m, url); } } } }