Repository: spark Updated Branches: refs/heads/branch-1.0 0e39c884c -> d0dde920d
Squishing a typo bug before it causes real harm in updateNumRows method in RowMatrix Author: Doris Xin <[email protected]> Closes #1125 from dorx/updateNumRows and squashes the following commits: 8564aef [Doris Xin] Squishing a typo bug before it causes real harm (cherry picked from commit 566f70f2140c1d243fe2368af60ecb390ac8ab3e) Signed-off-by: Xiangrui Meng <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/d0dde920 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/d0dde920 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/d0dde920 Branch: refs/heads/branch-1.0 Commit: d0dde920d47f3da77bcf1980df85fd1c47ff17f6 Parents: 0e39c88 Author: Doris Xin <[email protected]> Authored: Wed Jun 18 22:19:06 2014 -0700 Committer: Xiangrui Meng <[email protected]> Committed: Wed Jun 18 22:19:21 2014 -0700 ---------------------------------------------------------------------- .../org/apache/spark/mllib/linalg/distributed/RowMatrix.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/d0dde920/mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/RowMatrix.scala ---------------------------------------------------------------------- diff --git a/mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/RowMatrix.scala b/mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/RowMatrix.scala index 07dfadf..a2c8fb3 100644 --- a/mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/RowMatrix.scala +++ b/mllib/src/main/scala/org/apache/spark/mllib/linalg/distributed/RowMatrix.scala @@ -419,7 +419,7 @@ class RowMatrix( /** Updates or verfires the number of rows. */ private def updateNumRows(m: Long) { if (nRows <= 0) { - nRows == m + nRows = m } else { require(nRows == m, s"The number of rows $m is different from what specified or previously computed: ${nRows}.")
