Skip to content

Commit

Permalink
modify some mistake of code
Browse files Browse the repository at this point in the history
Signed-off-by: zhouruisong <236131368@qq.com>
  • Loading branch information
zhouruisong committed Jul 15, 2016
1 parent 439f1e5 commit b4e2c21
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions src/rgw/rgw_op.cc
Expand Up @@ -2603,9 +2603,7 @@ void RGWPutObj::execute()
int len;
map<string, string>::iterator iter;
bool multipart;

bufferlist bl_encode;


bool need_calc_md5 = (dlo_manifest == NULL) && (slo_info == NULL);

perfcounter->inc(l_rgw_put);
Expand Down
4 changes: 2 additions & 2 deletions src/rgw/rgw_torrent.cc
Expand Up @@ -85,7 +85,7 @@ off_t seed::get_data_len()
return info.len;
}

void seed::set_create_date(ceph::real_time value)
void seed::set_create_date(ceph::real_time& value)
{
utime_t date = ceph::real_clock::to_timespec(value);
create_date = date.sec();
Expand All @@ -96,7 +96,7 @@ void seed::set_info_pieces(char *buff)
info.sha1_bl.append(buff, CEPH_CRYPTO_SHA1_DIGESTSIZE);
}

void seed::set_info_name(string value)
void seed::set_info_name(const string& value)
{
info.name = value;
}
Expand Down
4 changes: 2 additions & 2 deletions src/rgw/rgw_torrent.h
Expand Up @@ -124,8 +124,8 @@ class seed

int handle_data();
void save_data(bufferlist &bl);
void set_create_date(ceph::real_time value);
void set_info_name(string value);
void set_create_date(ceph::real_time& value);
void set_info_name(const string& value);

private:
void do_encode ();
Expand Down

0 comments on commit b4e2c21

Please sign in to comment.