Module rdht_tx_test_and_set

Part of replicated DHT implementation.

Copyright © 2013 Zuse Institute Berlin

Version: $Id$

Authors: Nico Kruber (kruber@zib.de).

Description

Part of replicated DHT implementation. The test_and_set operation. This "two-phase" operation uses rdht_tx_read to first read the value and then alters the tlog entry so that it appears to be a write operation from rdht_tx_write. Changes are performed in the context of the client, not on the responsible node(s)!

Data Types

client_key()

client_key() = [unicode_char()]

client_value()

client_value() = any()

unicode_char()

unicode_char() = 0..55295 | 57344..65533 | 65536..1114111

Function Index

extract_from_tlog/5Get a result entry for a test_and_set operation from the given TLog entry.
extract_from_tlog_feeder/5
work_phase/3

Function Details

work_phase/3

work_phase(ClientPid :: pid(),
           ReqId :: rdht_tx:req_id() | rdht_tx_write:req_id(),
           Request :: api_tx:request()) ->
              ok

extract_from_tlog_feeder/5

extract_from_tlog_feeder(Entry :: tx_tlog:tlog_entry(),
                         Key :: client_key(),
                         Old :: client_value(),
                         New :: client_value(),
                         EnDecode :: true) ->
                            {tx_tlog:tlog_entry(),
                             client_key(),
                             client_value(),
                             client_value(),
                             EnDecode :: true}

extract_from_tlog/5

extract_from_tlog(Entry0 :: tx_tlog:tlog_entry(),
                  Key :: client_key(),
                  Old :: client_value(),
                  New :: client_value(),
                  EnDecode :: true) ->
                     {tx_tlog:tlog_entry(),
                      api_tx:testandset_result()}

Get a result entry for a test_and_set operation from the given TLog entry.


Generated by EDoc, Sep 11 2020, 15:25:08.