Tarantool development patches archive
 help / color / mirror / Atom feed
From: Vladislav Shpilevoy <v.shpilevoy@tarantool.org>
To: Kirill Shcherbatov <kshcherbatov@tarantool.org>,
	tarantool-patches@freelists.org
Subject: [tarantool-patches] Re: [PATCH v1 1/1] sql: drop useless code from os_unix.c
Date: Mon, 2 Jul 2018 14:22:40 +0300	[thread overview]
Message-ID: <d4b7570e-3756-727b-8476-908676bb7ee1@tarantool.org> (raw)
In-Reply-To: <443107fc62c650cea3007bf46975e5965518b02a.1530199154.git.kshcherbatov@tarantool.org>

Hello. Thanks for the patch! See 2 comments below.

On 28/06/2018 18:21, Kirill Shcherbatov wrote:
> Resolves #3284.
> ---
> https://github.com/tarantool/tarantool/tree/kshch/gh-3284-no-os-unix
> https://github.com/tarantool/tarantool/issues/3284
>   src/box/sql/os.c        |  168 --
>   src/box/sql/os_unix.c   | 6195 ++++++++++-------------------------------------
>   src/box/sql/sqliteInt.h |    1 -
>   3 files changed, 1342 insertions(+), 5022 deletions(-)
> 
> diff --git a/src/box/sql/os.c b/src/box/sql/os.c
> index 38d3585..5a04edb 100644
> --- a/src/box/sql/os.c
> +++ b/src/box/sql/os.c
> @@ -123,123 +123,12 @@ sqlite3OsWrite(sqlite3_file * id, const void *pBuf, int amt, i64 offset)
>   	return id->pMethods->xWrite(id, pBuf, amt, offset);
>   }
>   
> -int
> -sqlite3OsTruncate(sqlite3_file * id, i64 size)
> -{
> -	return id->pMethods->xTruncate(id, size);
> -}

1. These functions still are visible in grep results.

2. And much more functions and constants are either unused, or just
declared, but has no implementation. Please, complete the patch. I have
pushed some of removals on the branch as a separate commit. Please,
squash and finalize.

> -
> -int
> -sqlite3OsSync(sqlite3_file * id, int flags)
> -{
> -	DO_OS_MALLOC_TEST(id);
> -	return id->pMethods->xSync(id, flags);
> -}
> -

  reply	other threads:[~2018-07-02 11:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-28 15:21 [tarantool-patches] " Kirill Shcherbatov
2018-07-02 11:22 ` Vladislav Shpilevoy [this message]
2018-07-02 14:55   ` [tarantool-patches] " Kirill Shcherbatov
2018-07-02 18:29     ` Vladislav Shpilevoy
2018-07-03 11:27       ` Kirill Shcherbatov
2018-07-04 13:28         ` n.pettik
2018-08-08 16:00           ` Kirill Shcherbatov
2018-08-09  9:39             ` n.pettik
2018-08-14  7:45 ` Kirill Yukhin

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=d4b7570e-3756-727b-8476-908676bb7ee1@tarantool.org \
    --to=v.shpilevoy@tarantool.org \
    --cc=kshcherbatov@tarantool.org \
    --cc=tarantool-patches@freelists.org \
    --subject='[tarantool-patches] Re: [PATCH v1 1/1] sql: drop useless code from os_unix.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