Print this page
4574 get_clones_stat does not call zap_count in non-debug kernel
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Marcel Telka <marcel@telka.sk>
Approved by:

@@ -20,10 +20,11 @@
  */
 /*
  * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
  * Copyright (c) 2013 by Delphix. All rights reserved.
  * Copyright (c) 2012, Joyent, Inc. All rights reserved.
+ * Copyright (c) 2014 RackTop Systems.
  */
 
 #include <sys/dmu_objset.h>
 #include <sys/dsl_dataset.h>
 #include <sys/dsl_dir.h>

@@ -1362,11 +1363,11 @@
          * There may be missing entries in ds_next_clones_obj
          * due to a bug in a previous version of the code.
          * Only trust it if it has the right number of entries.
          */
         if (ds->ds_phys->ds_next_clones_obj != 0) {
-                ASSERT0(zap_count(mos, ds->ds_phys->ds_next_clones_obj,
+                VERIFY0(zap_count(mos, ds->ds_phys->ds_next_clones_obj,
                     &count));
         }
         if (count != ds->ds_phys->ds_num_children - 1)
                 goto fail;
         for (zap_cursor_init(&zc, mos, ds->ds_phys->ds_next_clones_obj);