Commit f7180e1f authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:4563], move txn code to own file

git-svn-id: file:///svn/toku/tokudb@40238 c7de825b-a66e-492c-adef-691d508d4ae1
parent ccb0ac10
...@@ -26,6 +26,7 @@ OBJS_RAW = \ ...@@ -26,6 +26,7 @@ OBJS_RAW = \
ydb_env_func \ ydb_env_func \
ydb_write \ ydb_write \
ydb_db \ ydb_db \
ydb_txn \
errors \ errors \
dlmalloc \ dlmalloc \
loader \ loader \
......
...@@ -257,13 +257,6 @@ void env_note_zombie_db_closed(DB_ENV *env, DB *db); ...@@ -257,13 +257,6 @@ void env_note_zombie_db_closed(DB_ENV *env, DB *db);
int toku_env_dbremove(DB_ENV * env, DB_TXN *txn, const char *fname, const char *dbname, u_int32_t flags); int toku_env_dbremove(DB_ENV * env, DB_TXN *txn, const char *fname, const char *dbname, u_int32_t flags);
int toku_env_dbrename(DB_ENV *env, DB_TXN *txn, const char *fname, const char *dbname, const char *newname, u_int32_t flags); int toku_env_dbrename(DB_ENV *env, DB_TXN *txn, const char *fname, const char *dbname, const char *newname, u_int32_t flags);
int toku_txn_begin_internal(DB_ENV *env, DB_TXN * stxn, DB_TXN ** txn, u_int32_t flags, bool internal, bool holds_ydb_lock);
int toku_txn_commit(DB_TXN * txn, u_int32_t flags, TXN_PROGRESS_POLL_FUNCTION, void*, bool release_multi_operation_client_lock);
int toku_txn_abort(DB_TXN * txn, TXN_PROGRESS_POLL_FUNCTION, void*, bool release_multi_operation_client_lock);
int locked_txn_commit(DB_TXN *txn, u_int32_t flags);
int locked_txn_abort(DB_TXN *txn);
#if defined(__cplusplus) #if defined(__cplusplus)
} }
#endif #endif
......
This diff is collapsed.
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
#if !defined(TOKU_YDB_DB_H) #if !defined(TOKU_YDB_DB_H)
#define TOKU_YDB_DB_H #define TOKU_YDB_DB_H
#include "ydb_txn.h"
#if defined(__cplusplus) #if defined(__cplusplus)
extern "C" { extern "C" {
#endif #endif
......
This diff is collapsed.
// This file defines the public interface to the ydb library
#if !defined(TOKU_YDB_TXN_H)
#define TOKU_YDB_TXN_H
#if defined(__cplusplus)
extern "C" {
#endif
int toku_txn_begin(DB_ENV *env, DB_TXN * stxn, DB_TXN ** txn, u_int32_t flags);
int toku_txn_begin_internal(DB_ENV *env, DB_TXN * stxn, DB_TXN ** txn, u_int32_t flags, bool internal, bool holds_ydb_lock);
int toku_txn_commit(DB_TXN * txn, u_int32_t flags, TXN_PROGRESS_POLL_FUNCTION, void*, bool release_multi_operation_client_lock);
int toku_txn_abort(DB_TXN * txn, TXN_PROGRESS_POLL_FUNCTION, void*, bool release_multi_operation_client_lock);
int locked_txn_commit(DB_TXN *txn, u_int32_t flags);
int locked_txn_abort(DB_TXN *txn);
#if defined(__cplusplus)
}
#endif
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment