This is an automated email from the ASF dual-hosted git repository.

alexey pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kudu.git


The following commit(s) were added to refs/heads/master by this push:
     new d1cfc20  [util] harmonize random_util
d1cfc20 is described below

commit d1cfc20dc4523784f11f9d60ee2ca9d2546c13db
Author: Andrew Wong <[email protected]>
AuthorDate: Wed Feb 16 20:30:49 2022 -0800

    [util] harmonize random_util
    
    Functions defined in int128_util.h caused ambiguous overload errors
    for:
      std::ostream& operator<<(std::ostream& os, const unsigned __int128& val),
    
    This patch includes "kudu/util/int128.h" instead of
    "kudu/util/int128_util.h".
    
    Change-Id: I247d68bedbd021aa59b8f057e0eed3166c08ac33
    Reviewed-on: http://gerrit.cloudera.org:8080/18248
    Tested-by: Alexey Serbin <[email protected]>
    Reviewed-by: Alexey Serbin <[email protected]>
---
 src/kudu/util/random_util-test.cc | 1 +
 src/kudu/util/random_util.h       | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/kudu/util/random_util-test.cc 
b/src/kudu/util/random_util-test.cc
index e86b232..e01fc1a 100644
--- a/src/kudu/util/random_util-test.cc
+++ b/src/kudu/util/random_util-test.cc
@@ -29,6 +29,7 @@
 
 #include "kudu/gutil/map-util.h"
 #include "kudu/util/int128.h"
+#include "kudu/util/int128_util.h"
 #include "kudu/util/random.h"
 #include "kudu/util/test_util.h"
 
diff --git a/src/kudu/util/random_util.h b/src/kudu/util/random_util.h
index 4448023..abeef3e 100644
--- a/src/kudu/util/random_util.h
+++ b/src/kudu/util/random_util.h
@@ -27,7 +27,7 @@
 #include <glog/logging.h>
 
 #include "kudu/gutil/map-util.h"
-#include "kudu/util/int128_util.h"
+#include "kudu/util/int128.h"
 #include "kudu/util/random.h"
 
 namespace kudu {

Reply via email to