]> pd.if.org Git - nbds/blobdiff - include/txn.h
all structures now support arbitrary type keys with a fast path for integers
[nbds] / include / txn.h
index b2d6a1027cbd2d5a1591bc0fd6bf1c20a379be4a..56144e93086d0a15ee96c4e909b80e7a7ac6e55f 100644 (file)
@@ -17,7 +17,7 @@ txn_t *     txn_begin  (txn_access_e access, txn_isolation_e isolation, map_t *m
 void        txn_abort  (txn_t *txn);
 txn_state_e txn_commit (txn_t *txn);
 
-uint64_t tm_get (txn_t *txn, const char *key, uint32_t key_len);
-void     tm_set (txn_t *txn, const char *key, uint32_t key_len, uint64_t value);
+uint64_t tm_get (txn_t *txn, void *key);
+void     tm_set (txn_t *txn, void *key, uint64_t value);
 
 #endif//TXN_H