There were some small changes in the behaviour of MasterLoader as a
result of review, this is update do ZoneLoader and its tests to
incorporate that.
// Not committed yet, we didn't complete the loading
EXPECT_FALSE(destination_client_.commit_called_);
- // This is unusual, but allowed. Check it doesn't do anything
- loader.loadIncremental(0);
EXPECT_EQ(10, destination_client_.rrsets_.size());
EXPECT_FALSE(destination_client_.commit_called_);
if (iterator_ == ZoneIteratorPtr()) {
assert(loader_.get() != NULL);
- complete_ = loader_->loadIncremental(limit);
+ try {
+ complete_ = loader_->loadIncremental(limit);
+ } catch (const isc::dns::MasterLoaderError& e) {
+ isc_throw(MasterFileError, e.getMessage().c_str());
+ }
if (complete_ && !loaded_ok_) {
isc_throw(MasterFileError, "Error while loading master file");
}