#include "handle.h"
-#include "threaded_log.h"
-#include "lock.h"
-#include <map>
-
-using std::map;
class hinfo {
public:
if (hmap.find(m) == hmap.end()) {
h = new hinfo(m);
hmap[m] = h;
+ h->refcnt++;
} else if (!hmap[m]->del) {
h = hmap[m];
+ h->refcnt++;
}
- h->refcnt++;
return h;
}