Skip to content

Commit

Permalink
Add flag indicating current semantics of report batch (#2111)
Browse files Browse the repository at this point in the history
* Add flag indicating current semantics of report batch

* Fix Unit Test
  • Loading branch information
douglas-reid authored and wenchenglu committed Feb 9, 2019
1 parent 1ae5ab2 commit 3509b29
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ cc_library(
actual = "@googletest_git//:googletest_prod",
)

ISTIO_API = "aec9db9d9a57faf688b4d5606fddede85d4d3855"
ISTIO_API_SHA256 = "52a23e3453b0e639879e34365f9b80d0c7888851ed51034aad89268d4100e908"
ISTIO_API = "3094619c84733caef53723bfc96fa63ceb58cd57"
ISTIO_API_SHA256 = "f1fb0b79d4c6af4dda9cba1cbd76f8dd3be8a1c6e4d8341fc62f33d7a8d57e6c"

def mixerapi_repositories(bind = True):
BUILD = """
Expand Down
3 changes: 3 additions & 0 deletions src/istio/mixerclient/attribute_compressor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ class BatchCompressorImpl : public BatchCompressor {
report_.add_default_words(word);
}
report_.set_global_word_count(global_dict_.size());
report_.set_repeated_attributes_semantics(
mixer::v1::
ReportRequest_RepeatedAttributesSemantics_INDEPENDENT_ENCODING);
return report_;
}

Expand Down
1 change: 1 addition & 0 deletions src/istio/mixerclient/attribute_compressor_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ attributes {
}
default_words: "JWT-Token"
global_word_count: 221
repeated_attributes_semantics: INDEPENDENT_ENCODING
)";

class AttributeCompressorTest : public ::testing::Test {
Expand Down

0 comments on commit 3509b29

Please sign in to comment.