Tarantool development patches archive
 help / color / mirror / Atom feed
From: Cyrill Gorcunov via Tarantool-patches <tarantool-patches@dev.tarantool.org>
To: Aleksandr Lyapunov <alyapunov@tarantool.org>
Cc: tml <tarantool-patches@dev.tarantool.org>,
	Alexander Turenko <alexander.turenko@tarantool.org>
Subject: Re: [Tarantool-patches] [PATCH] xlog: fix arguments processing in commit 8e429f4b7
Date: Fri, 5 Mar 2021 11:26:13 +0300	[thread overview]
Message-ID: <YEHrJbn2igt+TZ5Q@grain> (raw)
In-Reply-To: <d8daa69c-f04d-7230-da27-0c0dca8e41d8@tarantool.org>

On Fri, Mar 05, 2021 at 11:16:01AM +0300, Aleksandr Lyapunov wrote:
> Hi! thanks for the patch!
> 
> Actually we found the error an fixed it in #5823.
> You can see identical commit 733081f7042974f8fee9431e46cd45d2f1601438 .
> But again thanks for your cooperation!

Aha! I see, thanks! You know the patch you merged in actually still buggy
---
+               } else {
+                       int rc = unlink(filename);
+                       xdir_say_gc(rc, errno, filename);
+
}

The compiler has all rights to fetch @errno _before_ evaluating_ unlink,
there is no dependency. We might need a barrier. My patch did

+			int rc = unlink(filename);
+			int _errno = rc != 0 ? errno : 0;
+			xdir_say_gc(rc, _errno, filename);

here is _errno depends on unlink with a purpose.

  reply	other threads:[~2021-03-05  8:26 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-04 14:25 Cyrill Gorcunov via Tarantool-patches
2021-03-05  8:16 ` Aleksandr Lyapunov via Tarantool-patches
2021-03-05  8:26   ` Cyrill Gorcunov via Tarantool-patches [this message]
2021-03-05 10:14     ` Cyrill Gorcunov via Tarantool-patches

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=YEHrJbn2igt+TZ5Q@grain \
    --to=tarantool-patches@dev.tarantool.org \
    --cc=alexander.turenko@tarantool.org \
    --cc=alyapunov@tarantool.org \
    --cc=gorcunov@gmail.com \
    --subject='Re: [Tarantool-patches] [PATCH] xlog: fix arguments processing in commit 8e429f4b7' \
    /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