kudu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject [7/8] incubator-kudu git commit: Add a LOG_FATAL to the function so that new enum conditions are not missed.
Date Wed, 06 Jan 2016 23:46:19 GMT
Add a LOG_FATAL to the function so that new enum conditions are not missed.

Change-Id: Ib376f21343a43536db0ee7a33e3105db7eca221b
Reviewed-on: http://gerrit.cloudera.org:8080/1702
Reviewed-by: Todd Lipcon <todd@cloudera.com>
Tested-by: Todd Lipcon <todd@cloudera.com>


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

Branch: refs/heads/master
Commit: abe94483483713465c3928259d4f70348125234d
Parents: 9a1d0a3
Author: Anup Gangwar <anup.gangwar@gmail.com>
Authored: Tue Jan 5 13:25:22 2016 +0530
Committer: Todd Lipcon <todd@cloudera.com>
Committed: Wed Jan 6 21:31:38 2016 +0000

----------------------------------------------------------------------
 src/kudu/tablet/mvcc.cc | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kudu/blob/abe94483/src/kudu/tablet/mvcc.cc
----------------------------------------------------------------------
diff --git a/src/kudu/tablet/mvcc.cc b/src/kudu/tablet/mvcc.cc
index 47a51c6..ea3ea19 100644
--- a/src/kudu/tablet/mvcc.cc
+++ b/src/kudu/tablet/mvcc.cc
@@ -330,6 +330,7 @@ bool MvccManager::IsDoneWaitingUnlocked(const WaitingState& waiter)
const {
     case NONE_APPLYING:
       return !AnyApplyingAtOrBeforeUnlocked(waiter.timestamp);
   }
+  LOG(FATAL); // unreachable
 }
 
 bool MvccManager::AreAllTransactionsCommittedUnlocked(Timestamp ts) const {


Mime
View raw message