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

[t:4872] remove ydb lock usage for log_archive, opened ticket #4961 to...

[t:4872] remove ydb lock usage for log_archive, opened ticket #4961 to investigate if any threading issues exist with that function

git-svn-id: file:///svn/toku/tokudb@44101 c7de825b-a66e-492c-adef-691d508d4ae1
parent e793d272
......@@ -1151,7 +1151,7 @@ env_close(DB_ENV * env, u_int32_t flags) {
}
static int
toku_env_log_archive(DB_ENV * env, char **list[], u_int32_t flags) {
env_log_archive(DB_ENV * env, char **list[], u_int32_t flags) {
return toku_logger_log_archive(env->i->logger, list, flags);
}
......@@ -1475,12 +1475,6 @@ env_get_txn_from_xid (DB_ENV *env, /*in*/ TOKU_XA_XID *xid, /*out*/ DB_TXN **txn
return toku_txn_manager_get_txn_from_xid(toku_logger_get_txn_manager(env->i->logger), xid, txnp);
}
static int
locked_env_log_archive(DB_ENV * env, char **list[], u_int32_t flags) {
toku_ydb_lock(); int r = toku_env_log_archive(env, list, flags); toku_ydb_unlock(); return r;
}
static int
env_checkpointing_set_period(DB_ENV * env, u_int32_t seconds) {
HANDLE_PANICKED_ENV(env);
......@@ -2187,7 +2181,6 @@ toku_env_create(DB_ENV ** envp, u_int32_t flags) {
SENV(dbremove);
SENV(dbrename);
//SENV(set_noticecall);
SENV(log_archive);
SENV(create_indexer);
#undef SENV
#define USENV(name) result->name = env_ ## name
......@@ -2240,7 +2233,7 @@ toku_env_create(DB_ENV ** envp, u_int32_t flags) {
USENV(set_lock_timeout);
USENV(set_redzone);
USENV(log_flush);
USENV(log_archive);
#undef USENV
......
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