[tarantool-patches] [PATCH 7/7] Refactoring: get rid of on_close_log

Georgy Kirichenko georgy at tarantool.org
Tue Aug 13 09:27:45 MSK 2019


We do not use this one
---
 src/box/recovery.cc | 3 ---
 src/box/recovery.h  | 2 --
 2 files changed, 5 deletions(-)

diff --git a/src/box/recovery.cc b/src/box/recovery.cc
index 45c4f6820..fa0426726 100644
--- a/src/box/recovery.cc
+++ b/src/box/recovery.cc
@@ -111,7 +111,6 @@ recovery_new(const char *wal_dirname, bool force_recovery,
 	xdir_check_xc(&r->wal_dir);
 
 	r->watcher = NULL;
-	rlist_create(&r->on_close_log);
 
 	guard.is_active = false;
 	return r;
@@ -151,7 +150,6 @@ recovery_close_log(struct recovery *r)
 			 r->cursor.name);
 	}
 	xlog_cursor_close(&r->cursor, false);
-	trigger_run_xc(&r->on_close_log, NULL);
 }
 
 static void
@@ -213,7 +211,6 @@ recovery_delete(struct recovery *r)
 {
 	recovery_stop_local(r);
 
-	trigger_destroy(&r->on_close_log);
 	xdir_destroy(&r->wal_dir);
 	if (xlog_cursor_is_open(&r->cursor)) {
 		/*
diff --git a/src/box/recovery.h b/src/box/recovery.h
index 2a03cfc2f..1026507c2 100644
--- a/src/box/recovery.h
+++ b/src/box/recovery.h
@@ -56,8 +56,6 @@ struct recovery {
 	 * them locally.
 	 */
 	struct fiber *watcher;
-	/** List of triggers invoked when the current WAL is closed. */
-	struct rlist on_close_log;
 };
 
 struct recovery *
-- 
2.22.0





More information about the Tarantool-patches mailing list