From: "n.pettik" <korablev@tarantool.org>
To: tarantool-patches@freelists.org
Cc: szudin@tarantool.org
Subject: [tarantool-patches] Re: [PATCH] sql: remove useless pragmas
Date: Mon, 11 Feb 2019 01:54:36 +0300 [thread overview]
Message-ID: <FC9D8CE8-47B6-49C2-A257-351685C61C75@tarantool.org> (raw)
In-Reply-To: <2498e858-96b4-cd47-5ee7-2c1996d6b11d@tarantool.org>
> On 8 Feb 2019, at 19:46, Stanislav Zudin <szudin@tarantool.org> wrote:
>
> On 08.02.2019 17:03, n.pettik wrote:
>>
>>
>>> On 8 Feb 2019, at 13:17, Stanislav Zudin <szudin@tarantool.org <mailto:szudin@tarantool.org>> wrote:
>>>
>>> On 06.02.2019 16:21, n.pettik wrote:
>>>>
>>>>> On 6 Feb 2019, at 15:18, Stanislav Zudin <szudin@tarantool.org <mailto:szudin@tarantool.org>> wrote:
>>>>>
>>>>> The pragmas "query_only" and "read_uncommitted" didn't affect anything and were removed.
>>>> Nit: please, fit commit message into 72 symbols.
>>> Mea culpa
>>>>
>>>> What about “busy_timeout”? As I see from code it is also useless.
>>>> It may require to delete some code more code.
>>> It calls sqlite_busy_handler. Does this feature work?
>>
>> No, it doesn’t. You can remove it in a separate patch.
>
> Below you'll find a commit with removed pragma busy_timeout:
>
Please, fix commit message subject. I checked out your branch
and it turned out to be the same as in previous commit.
> The pragma "busy_timeout" is removed.
> SQLite's busyHandler functionality and functions sqlite3_sleep(),
> sqlite3OsSleep() were not used and were removed either.
>
> Closes #3733
> ---
> Branch: https://github.com/tarantool/tarantool/tree/stanztt/gh-3733-obsolete-pragmas
> Issue: https://github.com/tarantool/tarantool/issues/3733
>
> src/box/sql/main.c | 76 -----------------------------------------
> src/box/sql/os.c | 6 ----
> src/box/sql/os.h | 1 -
> src/box/sql/os_unix.c | 18 ----------
> src/box/sql/pragma.c | 23 ++++---------
> src/box/sql/pragma.h | 8 -----
> src/box/sql/sqliteInt.h | 6 ----
> src/box/sql/vdbe.c | 1 -
> 8 files changed, 6 insertions(+), 133 deletions(-)
>
> diff --git a/src/box/sql/main.c b/src/box/sql/main.c
> index 8574d6464..5555cb48e 100644
> --- a/src/box/sql/main.c
> +++ b/src/box/sql/main.c
> @@ -640,43 +640,6 @@ sqlite3ErrStr(int rc)
> return zErr;
> }
It seems that remains of busy_handle still exist in source (sqliteInt.h):
Macros SQLITE_FCNTL_BUSYHANDLER;
struct BusyHandler itself;
A couple of mentions in comments.
Please remove them as well.
prev parent reply other threads:[~2019-02-10 22:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-06 12:18 [tarantool-patches] " Stanislav Zudin
2019-02-06 13:21 ` [tarantool-patches] " n.pettik
2019-02-08 10:17 ` Stanislav Zudin
2019-02-08 14:03 ` n.pettik
2019-02-08 16:46 ` Stanislav Zudin
2019-02-10 22:54 ` n.pettik [this message]
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=FC9D8CE8-47B6-49C2-A257-351685C61C75@tarantool.org \
--to=korablev@tarantool.org \
--cc=szudin@tarantool.org \
--cc=tarantool-patches@freelists.org \
--subject='[tarantool-patches] Re: [PATCH] sql: remove useless pragmas' \
/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