| 44 | } |
| 45 | |
| 46 | std::string describeIndex(std::vector<std::pair<std::string, int>> indexKeys) { |
| 47 | std::string ret = "index: "; |
| 48 | for (const auto& indexKey : indexKeys) { |
| 49 | ret += format("{%s:%d}, ", indexKey.first.c_str(), indexKey.second); |
| 50 | } |
| 51 | ret.resize(ret.length() - 2); |
| 52 | return ret; |
| 53 | } |
| 54 | |
| 55 | IndexInfo::IndexStatus indexStatus(const bson::BSONObj& indexObj) { |
| 56 | const char* statusField = indexObj.getStringField(DocLayerConstants::STATUS_FIELD); |