]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: set truncated as false if ENOENT when listing mdlog entries
authorYehuda Sadeh <yehuda@inktank.com>
Fri, 31 May 2013 19:30:29 +0000 (12:30 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Fri, 31 May 2013 19:30:29 +0000 (12:30 -0700)
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/rgw/rgw_metadata.cc

index 105a346546157daca24519ad539972bf207a1c93..6c571bd8cfe49ac6298f193f0f1f830af2485b55 100644 (file)
@@ -114,6 +114,10 @@ int RGWMetadataLog::list_entries(void *handle,
                                  max_entries, entries, ctx->marker, truncated);
   if ((ret < 0) && (ret != -ENOENT))
     return ret;
+
+  if (ret == -ENOENT)
+    *truncated = false;
+
   return 0;
 }