]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
radosgw_admin: fix log show (with new poolid param)
authorYehuda Sadeh <yehuda@hq.newdream.net>
Mon, 13 Jun 2011 23:21:36 +0000 (16:21 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Mon, 13 Jun 2011 23:23:09 +0000 (16:23 -0700)
src/rgw/rgw_admin.cc

index 9d83fac6709023db182619fa47a18e3bd68742a7..7abc15733c6a3a94ba361157da79563c2bb91893 100644 (file)
@@ -818,8 +818,12 @@ int main(int argc, char **argv)
     if (object) {
       oid = object;
     } else {
+      char buf[16];
+      snprintf(buf, sizeof(buf), "%d", pool_id);
       oid = date;
       oid += "-";
+      oid += buf;
+      oid += "-";
       oid += string(bucket);
     }