Tarantool development patches archive
 help / color / mirror / Atom feed
From: Vladimir Davydov <vdavydov.dev@gmail.com>
To: tarantool-patches@freelists.org
Subject: [PATCH] space: fix space_group_id return value
Date: Tue,  2 Apr 2019 20:06:16 +0300	[thread overview]
Message-ID: <c3a09f52c36afa6644dde87dc4b52fae43b37f7b.1554224739.git.vdavydov.dev@gmail.com> (raw)

Should be uint32_t obviously, not bool. This didn't affect anything,
because there are only two replication groups right now - 0 and 1.

Spotted by @GeorgyKirichenko.

Fixes commit f64f46199e19 ("Introduce replica local spaces").
---
 src/box/space.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/box/space.h b/src/box/space.h
index bbb2addd..13a220d1 100644
--- a/src/box/space.h
+++ b/src/box/space.h
@@ -235,7 +235,7 @@ space_is_temporary(struct space *space)
 }
 
 /** Return replication group id of a space. */
-static inline bool
+static inline uint32_t
 space_group_id(struct space *space)
 {
 	return space->def->opts.group_id;
-- 
2.11.0

             reply	other threads:[~2019-04-02 17:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-02 17:06 Vladimir Davydov [this message]
2019-04-02 17:06 ` [PATCH] vinyl: rename vy_read_view_merge argument from hint to prev_tuple Vladimir Davydov
2019-04-02 17:09   ` Vladimir Davydov
2019-04-02 17:09 ` [PATCH] space: fix space_group_id return value Vladimir Davydov
2019-04-02 18:05 ` [tarantool-patches] " Konstantin Osipov

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=c3a09f52c36afa6644dde87dc4b52fae43b37f7b.1554224739.git.vdavydov.dev@gmail.com \
    --to=vdavydov.dev@gmail.com \
    --cc=tarantool-patches@freelists.org \
    --subject='Re: [PATCH] space: fix space_group_id return value' \
    /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