incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yus...@apache.org
Subject svn commit: r1376796 - /incubator/ambari/branches/branch-0.9/hmc/php/db/HMCDBAccessor.php
Date Fri, 24 Aug 2012 00:04:24 GMT
Author: yusaku
Date: Fri Aug 24 00:04:23 2012
New Revision: 1376796

URL: http://svn.apache.org/viewvc?rev=1376796&view=rev
Log:
AMBARI-673. Going back to step 3 from step 5 in UI breaks DB - fixed an undefined constant
issue with the original patch (Contributed by yusaku)

Modified:
    incubator/ambari/branches/branch-0.9/hmc/php/db/HMCDBAccessor.php

Modified: incubator/ambari/branches/branch-0.9/hmc/php/db/HMCDBAccessor.php
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/branch-0.9/hmc/php/db/HMCDBAccessor.php?rev=1376796&r1=1376795&r2=1376796&view=diff
==============================================================================
--- incubator/ambari/branches/branch-0.9/hmc/php/db/HMCDBAccessor.php (original)
+++ incubator/ambari/branches/branch-0.9/hmc/php/db/HMCDBAccessor.php Fri Aug 24 00:04:23
2012
@@ -3348,7 +3348,7 @@ public function cleanAllHostRoles($clust
   LockAcquire();
 
   $response = array ("result" => 0, "error" => "");
-  $query = "DELETE from " . HostRoles. " WHERE cluster_name = "
+  $query = "DELETE from HostRoles WHERE cluster_name = "
            . $this->dbHandle->quote($clusterName);
   $this->logger->log_trace("Running query: $query");
   $pdoStmt = $this->dbHandle->query($query);



Mime
View raw message