Changeset 2153 for trunk/pdns/pdns/dnsseckeeper.hh
- Timestamp:
- 04/12/11 11:30:35 (2 years ago)
- Files:
-
- 1 modified
-
trunk/pdns/pdns/dnsseckeeper.hh (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pdns/pdns/dnsseckeeper.hh
r2128 r2153 34 34 using namespace ::boost::multi_index; 35 35 36 class DNSSECKeeper 36 class DNSSECKeeper : public boost::noncopyable 37 37 { 38 38 public: … … 48 48 49 49 private: 50 UeberBackend d_keymetadb; 50 UeberBackend* d_keymetadb; 51 bool d_ourDB; 51 52 52 53 public: 53 DNSSECKeeper() : d_keymetadb( "key-only")54 DNSSECKeeper() : d_keymetadb( new UeberBackend("key-only")), d_ourDB(true) 54 55 { 56 57 } 58 59 DNSSECKeeper(UeberBackend* db) : d_keymetadb(db), d_ourDB(false) 60 { 61 } 62 63 ~DNSSECKeeper() 64 { 65 if(d_ourDB) 66 delete d_keymetadb; 55 67 } 56 68 bool isSecuredZone(const std::string& zone); … … 80 92 void startTransaction() 81 93 { 82 (*d_keymetadb .backends.begin())->startTransaction("", -1);94 (*d_keymetadb->backends.begin())->startTransaction("", -1); 83 95 } 84 96 85 97 void commitTransaction() 86 98 { 87 (*d_keymetadb .backends.begin())->commitTransaction();99 (*d_keymetadb->backends.begin())->commitTransaction(); 88 100 } 89 101