def METHOD_NAME(tid, revid, x):
    data = zodb_pickle(MinPO(x))
    t = TransactionMetaData()
    try:
        self._storage.tpc_begin(t, p64(tid))
        self._storage.store(oid, revid, data, '', t)
        # Finish the transaction
        self._storage.tpc_vote(t)
        newrevid = self._storage.tpc_finish(t)
    except:  # noqa: E722 do not use bare 'except'
        self._storage.tpc_abort(t)
        raise
    return newrevid