anchor.diff:              end
           end, SoldByUser)
       end, UsersInRegion),
  -    {ok, []} = pvc:commit_transaction(TxId),
  -    MatchingItems.
  -
  --spec view_item(key()) -> {ok, #view_item{}}.
  +    Commit = pvc:commit_transaction(TxId),
  +
  +    case Commit of
  +        ?committed ->
  +            MatchingItems;
  +        {error, Reason} ->
  +            {error, Reason}
  +    end.
  +
  +-spec view_item(key()) -> {ok, #view_item{}} | {error, reason()}.
   view_item(ItemId) ->
       {ok, TxId} = pvc:start_transaction(),
       {ok, [Item]} = pvc:read_keys(ItemId, TxId),
  
positive.code:                           item_quantity = Item#item.quantity,
                            user_username = Seller#user.username,
                            user_rating = Seller#user.rating},
      {ok, ViewItem}.
  
  -spec view_user(key()) -> {ok, {binary(), list()}}.
  view_user(UserId) ->
      UserGroup = rubis_utils:get_grouping(UserId),
      CommentIndex = rubis_utils:gen_index_name(UserGroup, comments_to_id),
  
      {ok, TxId} = pvc:start_transaction(),
      {ok, [#user{username = Username}]} = pvc:read_keys(UserId, TxId),
  
negative.code:     NewQty = case OldQty - Quantity of N when N < 0 -> 0; M -> M end,
      UpdatedItem = Item#item{quantity = NewQty},
      ok = pvc:update_keys({OnItemId, UpdatedItem}, TxId),
      Commit = pvc:commit_transaction(TxId),
  
      case Commit of
          ?committed ->
              {ok, BuyNowKey};
          {error, Reason} ->
              {error, Reason}
      end.
  
  -spec store_bid(key(), key(), non_neg_integer()) -> {ok, key()} | {error, reason()}.
  store_bid(OnItemId, BidderId, Value) ->
      %% The grouping for a bid object is the same as the grouping of the item
      SelfPartition = log_utilities:get_key_partition(OnItemId),
  