Whamcloud - gitweb
- don't complain if key is absent - mdd_rename() removes target name unconditionally
authoralex <alex>
Tue, 21 Jul 2009 11:34:42 +0000 (11:34 +0000)
committeralex <alex>
Tue, 21 Jul 2009 11:34:42 +0000 (11:34 +0000)
lustre/dmu-osd/osd_handler.c

index 6a246bf..dd6956a 100644 (file)
@@ -1709,7 +1709,7 @@ static int osd_index_delete(const struct lu_env *env, struct dt_object *dt,
         /* Remove key from the ZAP */
         rc = udmu_zap_delete(&osd->od_objset, zap_db, oh->ot_tx, (char *) key);
 
-        if (rc)
+        if (rc && rc != ENOENT)
                 CERROR("udmu_zap_delete() failed with error %d\n", rc);
 
         RETURN(-rc);