*/
#include "include/memory.h"
-#include <map>
+#include "include/unordered_map.h"
#if defined(__FreeBSD__)
#include <sys/param.h>
IndexManager::~IndexManager() {
- for (map<coll_t, CollectionIndex* > ::iterator it = col_indices.begin();
+ for (ceph::unordered_map<coll_t, CollectionIndex* > ::iterator it = col_indices.begin();
it != col_indices.end(); ++it) {
delete it->second;
int IndexManager::get_index(coll_t c, const string& baseDir, Index *index) {
Mutex::Locker l(lock);
- map<coll_t, CollectionIndex* > ::iterator it = col_indices.find(c);
+ ceph::unordered_map<coll_t, CollectionIndex* > ::iterator it = col_indices.find(c);
if (it == col_indices.end()) {
char path[PATH_MAX];
snprintf(path, sizeof(path), "%s/current/%s", baseDir.c_str(), c.to_str().c_str());
#define OS_INDEXMANAGER_H
#include "include/memory.h"
-#include <map>
+#include "include/unordered_map.h"
#include "common/Mutex.h"
#include "common/Cond.h"
class IndexManager {
Mutex lock; ///< Lock for Index Manager
bool upgrade;
- map<coll_t, CollectionIndex* > col_indices;
+ ceph::unordered_map<coll_t, CollectionIndex* > col_indices;
/**
* Index factory