From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 84F8A288E8 for ; Tue, 13 Aug 2019 02:27:55 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 94UYG2sye9ZR for ; Tue, 13 Aug 2019 02:27:55 -0400 (EDT) Received: from smtp39.i.mail.ru (smtp39.i.mail.ru [94.100.177.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 42264288E1 for ; Tue, 13 Aug 2019 02:27:55 -0400 (EDT) From: Georgy Kirichenko Subject: [tarantool-patches] [PATCH 7/7] Refactoring: get rid of on_close_log Date: Tue, 13 Aug 2019 09:27:45 +0300 Message-Id: <81bbe756adc6521928214bb5cf80e40e0bb6be38.1565676868.git.georgy@tarantool.org> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-Help: List-Unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-Subscribe: List-Owner: List-post: List-Archive: To: tarantool-patches@freelists.org Cc: Georgy Kirichenko 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