]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: add hour to intent log name for higher resolution
authorYehuda Sadeh <yehuda@hq.newdream.net>
Tue, 9 Aug 2011 17:41:18 +0000 (10:41 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Tue, 9 Aug 2011 17:41:40 +0000 (10:41 -0700)
src/rgw/rgw_log.cc

index 24b8db5bc4efa7c4d956cdfb7af20a04a6897f7a..0088a3502fb412fc9a7d16e7034487e53d7cb578 100644 (file)
@@ -112,7 +112,7 @@ int rgw_log_intent(struct req_state *s, rgw_obj& obj, RGWIntentEvent intent)
   localtime_r(&t, &bdt);
 
   char buf[obj.bucket.size() + 16];
-  sprintf(buf, "%.4d-%.2d-%.2d-%d-%s", (bdt.tm_year+1900), (bdt.tm_mon+1), bdt.tm_mday, s->pool_id, obj.bucket.c_str());
+  sprintf(buf, "%.4d-%.2d-%.2d-%.2d-%d-%s", (bdt.tm_year+1900), (bdt.tm_mon+1), bdt.tm_mday, bdt.tm_hour, s->pool_id, obj.bucket.c_str());
   string oid(buf);
   rgw_obj log_obj(intent_log_bucket, oid);