Re: [ceph-users] a bug of rgw?

2014-12-04 Thread han vincent
rgw_admin.cc not rgw_main.cc or rgw_code.cc.

2014-12-04 16:14 GMT+08:00 han vincent hang...@gmail.com:
 rgw_admin not rgw_main.cc or rgw_code.cc.

 2014-12-04 16:02 GMT+08:00 han vincent hang...@gmail.com:
 I am sorry, I have made a mistake. The source file of the code is
 rgw_code.cc
 instead of rgw_mian.cc.

 2014-12-04 11:13 GMT+08:00 han vincent hang...@gmail.com:
 hello, every one.
 when I read the source code of ceph of which the version is
 0.80.1. I found that line 1646 in rgw_main.cc wrote as following:

 uint64_t total_time =  entry.total_time.sec() * 100LL *
 entry.total_time.usec();

 I did not understand the meaning of this line of code. I think the
 second operation symbol of  “*”  should be changed to
 +. so this line should be uint64_t total_time =
 entry.total_time.sec() * 100LL + entry.total_time.usec(); .
 Is it a bug?
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


Re: [ceph-users] a bug of rgw?

2014-12-04 Thread han vincent
rgw_admin not rgw_main.cc or rgw_code.cc.

2014-12-04 16:02 GMT+08:00 han vincent hang...@gmail.com:
 I am sorry, I have made a mistake. The source file of the code is
 rgw_code.cc
 instead of rgw_mian.cc.

 2014-12-04 11:13 GMT+08:00 han vincent hang...@gmail.com:
 hello, every one.
 when I read the source code of ceph of which the version is
 0.80.1. I found that line 1646 in rgw_main.cc wrote as following:

 uint64_t total_time =  entry.total_time.sec() * 100LL *
 entry.total_time.usec();

 I did not understand the meaning of this line of code. I think the
 second operation symbol of  “*”  should be changed to
 +. so this line should be uint64_t total_time =
 entry.total_time.sec() * 100LL + entry.total_time.usec(); .
 Is it a bug?
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


Re: [ceph-users] a bug of rgw?

2014-12-04 Thread han vincent
I am sorry, I have made a mistake. The source file of the code is
rgw_code.cc
instead of rgw_mian.cc.

2014-12-04 11:13 GMT+08:00 han vincent hang...@gmail.com:
 hello, every one.
 when I read the source code of ceph of which the version is
 0.80.1. I found that line 1646 in rgw_main.cc wrote as following:

 uint64_t total_time =  entry.total_time.sec() * 100LL *
 entry.total_time.usec();

 I did not understand the meaning of this line of code. I think the
 second operation symbol of  “*”  should be changed to
 +. so this line should be uint64_t total_time =
 entry.total_time.sec() * 100LL + entry.total_time.usec(); .
 Is it a bug?
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com