X-Git-Url: https://pd.if.org/git/?p=nbds;a=blobdiff_plain;f=include%2Ftxn.h;h=c23c59b8548085e8f09aa4b07d1bd428896be634;hp=9b80e17f5e1105c63894c448287c7d25a4ca9294;hb=8143ca0acc36e19d004431952e3b6f9b3d337f49;hpb=95cfcadf0f8f69f4237cde9a61ea6c64b40f8043 diff --git a/include/txn.h b/include/txn.h index 9b80e17..c23c59b 100644 --- a/include/txn.h +++ b/include/txn.h @@ -4,12 +4,12 @@ */ #ifndef TXN_H #define TXN_H -#include "ht.h" +#include "map.h" typedef enum { TXN_READ_WRITE, TXN_READ_ONLY, TXN_BLIND_WRITE } txn_access_t; typedef enum { TXN_DIRTY_READ, TXN_READ_COMMITTED, TXN_REPEATABLE_READ } txn_isolation_t; typedef struct txn txn_t; -txn_t *txn_begin (txn_access_t access, txn_isolation_t isolation, hash_table_t *ht); +txn_t *txn_begin (txn_access_t access, txn_isolation_t isolation, map_t *map); #endif//TXN_H