From: "n.pettik" <korablev@tarantool.org> To: tarantool-patches@freelists.org Cc: Konstantin Osipov <kostja@tarantool.org>, Imeev Mergen <imeevma@tarantool.org> Subject: [tarantool-patches] Re: [PATCH v1 3/3] sql: remove unused functions from main.c Date: Thu, 11 Apr 2019 03:24:31 +0300 [thread overview] Message-ID: <74B61010-2EA1-4743-A9DE-F6F39F6265E2@tarantool.org> (raw) In-Reply-To: <20190410073147.GJ8268@chai> > On 10 Apr 2019, at 10:31, Konstantin Osipov <kostja@tarantool.org> wrote: > > * imeevma@tarantool.org <imeevma@tarantool.org> [19/04/09 20:19]: >> -int >> -sql_shutdown(void) > > This could be actually useful when debugging memory leaks, Nikita, > what's your take? I believe it is broken and useless. What is more, we are going to completely remove SQLite's original allocators and use only malloc and region. So, it makes no sense to leave this function. If we may need to have smth like that someday, it will be easier to implement it from scratch (IMHO). >> -/* >> - * Cause any pending operation to stop at its earliest opportunity. >> - */ >> -void >> -sql_interrupt(sql * db) >> -{ >> - db->u1.isInterrupted = 1; >> -} > > This could also be useful. TBO I don’t understand why it could be useful and how it can be applied to our SQL implementation at all. Furthermore, there’s no guarantee that we haven’t removed some parts of this functionality during previous refactorings. Let’s finish it.
next prev parent reply other threads:[~2019-04-11 0:24 UTC|newest] Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top 2019-04-09 17:17 [tarantool-patches] [PATCH v1 0/3] sql: remove unused code from SQL imeevma 2019-04-09 17:17 ` [tarantool-patches] [PATCH v1 1/3] sql: remove legacy.c imeevma 2019-04-10 7:26 ` [tarantool-patches] " Konstantin Osipov 2019-04-11 0:02 ` n.pettik 2019-04-09 17:17 ` [tarantool-patches] [PATCH v1 2/3] sql: remove unused macros in SQL imeevma 2019-04-10 7:28 ` [tarantool-patches] " Konstantin Osipov 2019-04-11 0:08 ` n.pettik 2019-04-11 16:56 ` Imeev Mergen 2019-04-12 13:08 ` Mergen Imeev 2019-04-22 15:39 ` n.pettik 2019-04-23 8:59 ` Kirill Yukhin 2019-04-09 17:17 ` [tarantool-patches] [PATCH v1 3/3] sql: remove unused functions from main.c imeevma 2019-04-10 7:31 ` [tarantool-patches] " Konstantin Osipov 2019-04-11 0:24 ` n.pettik [this message] 2019-04-11 6:36 ` Konstantin Osipov 2019-04-11 0:14 ` n.pettik
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=74B61010-2EA1-4743-A9DE-F6F39F6265E2@tarantool.org \ --to=korablev@tarantool.org \ --cc=imeevma@tarantool.org \ --cc=kostja@tarantool.org \ --cc=tarantool-patches@freelists.org \ --subject='[tarantool-patches] Re: [PATCH v1 3/3] sql: remove unused functions from main.c' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox