Fix compile warning in db/db_impl

Summary:
Fix the following compile warning in db/db_impl

  db/db_impl.cc:1603:19: error: implicit conversion loses integer precision: 'const uint64_t' (aka 'const unsigned long') to 'int' [-Werror,-Wshorten-64-to-32]
     info.job_id = job_id;
                 ~ ^~~~~~

Test Plan: db_test

Reviewers: sdong

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D39423
This commit is contained in:
Yueh-Hsuan Chiang 2015-06-02 17:35:39 -07:00
parent fe5c6321cb
commit 8afafc2783
2 changed files with 2 additions and 2 deletions

View File

@ -1584,7 +1584,7 @@ Status DBImpl::CompactFilesImpl(
void DBImpl::NotifyOnCompactionCompleted(
ColumnFamilyData* cfd, Compaction *c, const Status &st,
const CompactionJobStats& compaction_job_stats,
const uint64_t job_id) {
const int job_id) {
#ifndef ROCKSDB_LITE
if (db_options_.listeners.size() == 0U) {
return;

View File

@ -353,7 +353,7 @@ class DBImpl : public DB {
void NotifyOnCompactionCompleted(ColumnFamilyData* cfd,
Compaction *c, const Status &st,
const CompactionJobStats& job_stats,
uint64_t job_id);
int job_id);
void NewThreadStatusCfInfo(ColumnFamilyData* cfd) const;