You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@impala.apache.org by ta...@apache.org on 2018/03/22 16:14:06 UTC

[6/7] impala git commit: IMPALA-6713: Fix format string error in Sorter

IMPALA-6713: Fix format string error in Sorter

This change fixes a format string which incorrectly used
$2 instead of $1 when there are only two arguments to the
format string.

Change-Id: Icdaa781ced755c896cdc9a1fff690811a59e0492
Reviewed-on: http://gerrit.cloudera.org:8080/9740
Reviewed-by: Sailesh Mukil <sa...@cloudera.com>
Tested-by: Impala Public Jenkins


Project: http://git-wip-us.apache.org/repos/asf/impala/repo
Commit: http://git-wip-us.apache.org/repos/asf/impala/commit/6d84acc8
Tree: http://git-wip-us.apache.org/repos/asf/impala/tree/6d84acc8
Diff: http://git-wip-us.apache.org/repos/asf/impala/diff/6d84acc8

Branch: refs/heads/2.x
Commit: 6d84acc8a535af3fa434ade4d81ef64d5a9d190c
Parents: 9f815d9
Author: Michael Ho <kw...@cloudera.com>
Authored: Wed Mar 21 12:05:47 2018 -0700
Committer: Impala Public Jenkins <im...@gerrit.cloudera.org>
Committed: Thu Mar 22 00:49:57 2018 +0000

----------------------------------------------------------------------
 be/src/runtime/sorter.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/impala/blob/6d84acc8/be/src/runtime/sorter.cc
----------------------------------------------------------------------
diff --git a/be/src/runtime/sorter.cc b/be/src/runtime/sorter.cc
index b85e61b..5ef321b 100644
--- a/be/src/runtime/sorter.cc
+++ b/be/src/runtime/sorter.cc
@@ -634,7 +634,7 @@ Status Sorter::Run::Init() {
   int64_t required_mem = num_to_create * sorter_->page_len_;
   if (!sorter_->buffer_pool_client_->IncreaseReservationToFit(required_mem)) {
     return Status(Substitute(
-        "Unexpected error trying to reserve $0 bytes for a sorted run: $2",
+        "Unexpected error trying to reserve $0 bytes for a sorted run: $1",
         required_mem, sorter_->buffer_pool_client_->DebugString()));
   }