From 61b3e1f51ee3e695f4f9b95b9e30c8663b5cae4b Mon Sep 17 00:00:00 2001 From: Jon Fu Date: Wed, 6 Jul 2022 13:16:24 -0700 Subject: [PATCH] add comment about our tenant encoding --- bindings/c/test/mako/mako.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bindings/c/test/mako/mako.cpp b/bindings/c/test/mako/mako.cpp index 87574db655..e7ce98b198 100644 --- a/bindings/c/test/mako/mako.cpp +++ b/bindings/c/test/mako/mako.cpp @@ -177,8 +177,9 @@ int cleanup(Database db, Arguments const& args) { doc.Parse(metadata); if (!doc.HasParseError()) { // rapidjson does not decode the prefix as the same byte string that - // was passed as input. For a workaround, we take the id - // and compute the prefix on our own + // was passed as input. This is because we use a non-standard encoding. + // The encoding will likely change in the future. + // For a workaround, we take the id and compute the prefix on our own rapidjson::Value& docVal = doc["id"]; uint64_t id = docVal.GetUint64(); ByteString tenantPrefix(8, '\0');