Browse Source

assert() an impossible case.

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac454@4086 e5f2f494-b856-4b98-b285-d166d9295462
JINMEI Tatuya 14 years ago
parent
commit
818530c7a1
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/lib/datasrc/memory_datasrc.cc

+ 3 - 1
src/lib/datasrc/memory_datasrc.cc

@@ -154,7 +154,9 @@ struct MemoryZone::MemoryZoneImpl {
             return (true);
         }
 
-        return (false);         // note: right now this case is impossible.
+        // This case should not happen because we enable callback only
+        // when we add an RR searched for above.
+        assert(0);
     }
 
     // Implementation of MemoryZone::find