[PATCH] space: fix space_group_id return value
Vladimir Davydov
vdavydov.dev at gmail.com
Tue Apr 2 20:06:16 MSK 2019
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
More information about the Tarantool-patches
mailing list