Browse Source

[2836] Remove deprecated hack

The create now throws on relocation, so the whole operation is tried
again. No need to worry about object being relocated.
Michal 'vorner' Vaner 12 years ago
parent
commit
52588836af
1 changed files with 0 additions and 6 deletions
  1. 0 6
      src/lib/datasrc/memory/zone_data_updater.cc

+ 0 - 6
src/lib/datasrc/memory/zone_data_updater.cc

@@ -234,12 +234,6 @@ ZoneDataUpdater::setupNSEC3(const ConstRRsetPtr rrset) {
     NSEC3Data* nsec3_data = zone_data_->getNSEC3Data();
     if (nsec3_data == NULL) {
         nsec3_data = NSEC3Data::create(mem_sgmt_, zone_name_, nsec3_rdata);
-        // The create above might have relocated data. So get it again,
-        // just to make sure.
-        zone_data_ =
-            static_cast<ZoneData*>(mem_sgmt_.
-                                   getNamedAddress("updater_zone_data").
-                                   second);
         zone_data_->setNSEC3Data(nsec3_data);
         zone_data_->setSigned(true);
     } else {