Repository: kudu
Updated Branches:
  refs/heads/master 415170808 -> 7465c91b8


tablet: squelch unused variable warning

  ../../src/kudu/tablet/tablet.cc: In member function 
‘std::shared_ptr<kudu::tablet::RowSet> 
kudu::tablet::Tablet::FindBestDMSToFlush(const ReplaySizeMap&) const’:
  ../../src/kudu/tablet/tablet.cc:1893:11: warning: variable 
‘retention_size’ set but not used [-Wunused-but-set-variable]
     int64_t retention_size = 0;
             ^

Change-Id: I8302eb0902e005d1d193eea1bac87c83dfb27d22
Reviewed-on: http://gerrit.cloudera.org:8080/9087
Tested-by: Kudu Jenkins
Reviewed-by: Todd Lipcon <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/kudu/repo
Commit: http://git-wip-us.apache.org/repos/asf/kudu/commit/80e58a7e
Tree: http://git-wip-us.apache.org/repos/asf/kudu/tree/80e58a7e
Diff: http://git-wip-us.apache.org/repos/asf/kudu/diff/80e58a7e

Branch: refs/heads/master
Commit: 80e58a7eea810978d5bb0b150e7a04e0b50e477d
Parents: 4151708
Author: Adar Dembo <[email protected]>
Authored: Fri Jan 19 16:22:56 2018 -0800
Committer: Todd Lipcon <[email protected]>
Committed: Mon Jan 22 23:23:55 2018 +0000

----------------------------------------------------------------------
 src/kudu/tablet/tablet.cc | 2 --
 1 file changed, 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kudu/blob/80e58a7e/src/kudu/tablet/tablet.cc
----------------------------------------------------------------------
diff --git a/src/kudu/tablet/tablet.cc b/src/kudu/tablet/tablet.cc
index 6812bca..77413bb 100644
--- a/src/kudu/tablet/tablet.cc
+++ b/src/kudu/tablet/tablet.cc
@@ -1890,7 +1890,6 @@ shared_ptr<RowSet> Tablet::FindBestDMSToFlush(const 
ReplaySizeMap& replay_size_m
   scoped_refptr<TabletComponents> comps;
   GetComponents(&comps);
   int64_t mem_size = 0;
-  int64_t retention_size = 0;
   double max_score = 0;
   double mem_weight = 0;
   // If system is under memory pressure, we use the percentage of the hard 
limit consumed
@@ -1911,7 +1910,6 @@ shared_ptr<RowSet> Tablet::FindBestDMSToFlush(const 
ReplaySizeMap& replay_size_m
     if ((score > max_score) ||
         (score > max_score - 1 && mem > mem_size)) {
       max_score = score;
-      retention_size = size;
       mem_size = mem;
       best_dms = rowset;
     }

Reply via email to