anchor.diff:  %% under the License.
   %%
   %% -------------------------------------------------------------------
  -%% @doc Callbacks for TS protobuf messages [codes 90..99]
  +%% @doc Callbacks for TS protobuf messages [codes 90..101]
   
   -module(riak_kv_pb_timeseries).
   
  
positive.code: -define(E_CREATED_INACTIVE,  1015).
  -define(E_CREATED_GHOST,     1016).
  -define(E_ACTIVATE,          1017).
  
  -define(FETCH_RETRIES, 10).  %% TODO make it configurable in tsqueryreq
  -define(TABLE_ACTIVATE_WAIT, 30). %% ditto
  
negative.code: decode(Code, Bin) ->
      Msg = riak_pb_codec:decode(Code, Bin),
      case Msg of
          #tsqueryreq{query = Q, cover_context = Cover} ->
              case catch decode_query(Q, Cover) of
                  {ok, DecodedQuery} ->
                      PermAndTarget = decode_query_permissions(DecodedQuery),
                      {ok, DecodedQuery, PermAndTarget};
  