[tarantool-patches] [PATCH v1 27/28] sql: make function return void instead of int
imeevma at tarantool.org
imeevma at tarantool.org
Mon Jun 10 16:57:09 MSK 2019
Function tarantoolsqlEphemeralDrop() always returns 0. Let's make
it return void to make code clean.
---
src/box/sql.c | 4 ++--
src/box/sql/tarantoolInt.h | 4 +++-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/box/sql.c b/src/box/sql.c
index d8c7d91..a0350da 100644
--- a/src/box/sql.c
+++ b/src/box/sql.c
@@ -386,13 +386,13 @@ int tarantoolsqlEphemeralInsert(struct space *space, const char *tuple,
}
/* Simply delete ephemeral space by calling space_delete(). */
-int tarantoolsqlEphemeralDrop(BtCursor *pCur)
+void
+tarantoolsqlEphemeralDrop(BtCursor *pCur)
{
assert(pCur);
assert(pCur->curFlags & BTCF_TEphemCursor);
space_delete(pCur->space);
pCur->space = NULL;
- return 0;
}
static inline int
diff --git a/src/box/sql/tarantoolInt.h b/src/box/sql/tarantoolInt.h
index e166045..1ded6c7 100644
--- a/src/box/sql/tarantoolInt.h
+++ b/src/box/sql/tarantoolInt.h
@@ -89,7 +89,9 @@ int tarantoolsqlEphemeralInsert(struct space *space, const char *tuple,
int tarantoolsqlEphemeralDelete(BtCursor * pCur);
int64_t
tarantoolsqlEphemeralCount(struct BtCursor *pCur);
-int tarantoolsqlEphemeralDrop(BtCursor * pCur);
+void
+tarantoolsqlEphemeralDrop(BtCursor * pCur);
+
int tarantoolsqlEphemeralClearTable(BtCursor * pCur);
/**
--
2.7.4
More information about the Tarantool-patches
mailing list