From: Vladimir Davydov <vdavydov.dev@gmail.com>
To: tarantool-patches@freelists.org
Subject: [PATCH v2 3/7] vinyl: rename tree_mem_key to vy_mem_tree_key
Date: Sat, 6 Apr 2019 23:01:50 +0300 [thread overview]
Message-ID: <2a030096f8f20da9355e93f2119d421c0fd981e9.1554580275.git.vdavydov.dev@gmail.com> (raw)
In-Reply-To: <cover.1554580275.git.vdavydov.dev@gmail.com>
In-Reply-To: <cover.1554580275.git.vdavydov.dev@gmail.com>
For aesthetic purposes. No functional changes.
---
src/box/vinyl.c | 2 +-
src/box/vy_mem.c | 6 +++---
src/box/vy_mem.h | 6 +++---
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/box/vinyl.c b/src/box/vinyl.c
index b8f94b26..2029e112 100644
--- a/src/box/vinyl.c
+++ b/src/box/vinyl.c
@@ -3540,7 +3540,7 @@ vy_squash_process(struct vy_squash *squash)
* vy_lsm_commit_upsert().
*/
struct vy_mem *mem = lsm->mem;
- struct tree_mem_key tree_key = {
+ struct vy_mem_tree_key tree_key = {
.stmt = result,
.lsn = vy_stmt_lsn(result),
};
diff --git a/src/box/vy_mem.c b/src/box/vy_mem.c
index d6d8dce2..dc1401ad 100644
--- a/src/box/vy_mem.c
+++ b/src/box/vy_mem.c
@@ -134,7 +134,7 @@ vy_mem_delete(struct vy_mem *index)
struct tuple *
vy_mem_older_lsn(struct vy_mem *mem, struct tuple *stmt)
{
- struct tree_mem_key tree_key;
+ struct vy_mem_tree_key tree_key;
tree_key.stmt = stmt;
tree_key.lsn = vy_stmt_lsn(stmt) - 1;
bool exact = false;
@@ -354,7 +354,7 @@ vy_mem_iterator_find_lsn(struct vy_mem_iterator *itr)
* is going to take long. So instead we look it up - it's
* pretty cheap anyway.
*/
- struct tree_mem_key tree_key;
+ struct vy_mem_tree_key tree_key;
tree_key.stmt = itr->curr_stmt;
tree_key.lsn = (**itr->read_view).vlsn;
itr->curr_pos = vy_mem_tree_lower_bound(&itr->mem->tree,
@@ -398,7 +398,7 @@ vy_mem_iterator_seek(struct vy_mem_iterator *itr, struct tuple *last_key)
}
bool exact;
- struct tree_mem_key tree_key;
+ struct vy_mem_tree_key tree_key;
tree_key.stmt = key;
/* (lsn == INT64_MAX - 1) means that lsn is ignored in comparison */
tree_key.lsn = INT64_MAX - 1;
diff --git a/src/box/vy_mem.h b/src/box/vy_mem.h
index a68b8dc9..ba9e76ab 100644
--- a/src/box/vy_mem.h
+++ b/src/box/vy_mem.h
@@ -78,7 +78,7 @@ vy_mem_env_destroy(struct vy_mem_env *env);
/** @cond false */
-struct tree_mem_key {
+struct vy_mem_tree_key {
struct tuple *stmt;
int64_t lsn;
};
@@ -101,7 +101,7 @@ vy_mem_tree_cmp(struct tuple *a, struct tuple *b,
* Internal. Extracted to speed up BPS tree.
*/
static int
-vy_mem_tree_cmp_key(struct tuple *a, struct tree_mem_key *key,
+vy_mem_tree_cmp_key(struct tuple *a, struct vy_mem_tree_key *key,
struct key_def *cmp_def)
{
int res = vy_stmt_compare(a, key->stmt, cmp_def);
@@ -122,7 +122,7 @@ vy_mem_tree_cmp_key(struct tuple *a, struct tree_mem_key *key,
#define BPS_TREE_COMPARE(a, b, cmp_def) vy_mem_tree_cmp(a, b, cmp_def)
#define BPS_TREE_COMPARE_KEY(a, b, cmp_def) vy_mem_tree_cmp_key(a, b, cmp_def)
#define bps_tree_elem_t struct tuple *
-#define bps_tree_key_t struct tree_mem_key *
+#define bps_tree_key_t struct vy_mem_tree_key *
#define bps_tree_arg_t struct key_def *
#define BPS_TREE_NO_DEBUG
--
2.11.0
next prev parent reply other threads:[~2019-04-06 20:01 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-06 20:01 [PATCH v2 0/7] Incorporate tuple comparison hints into Vinyl Vladimir Davydov
2019-04-06 20:01 ` [PATCH v2 1/7] Move hint_t definition to tuple_compare.h Vladimir Davydov
2019-04-08 12:08 ` [tarantool-patches] " Konstantin Osipov
2019-04-06 20:01 ` [PATCH v2 2/7] vinyl: rename vy_cache_entry to vy_cache_node Vladimir Davydov
2019-04-08 12:09 ` [tarantool-patches] " Konstantin Osipov
2019-04-06 20:01 ` Vladimir Davydov [this message]
2019-04-08 12:09 ` [tarantool-patches] Re: [PATCH v2 3/7] vinyl: rename tree_mem_key to vy_mem_tree_key Konstantin Osipov
2019-04-06 20:01 ` [PATCH v2 4/7] vinyl: zap vy_mem_iterator_curr_stmt helper Vladimir Davydov
2019-04-08 12:09 ` [tarantool-patches] " Konstantin Osipov
2019-04-06 20:01 ` [PATCH v2 5/7] vinyl: add wrapper around vy_tx_set Vladimir Davydov
2019-04-06 20:01 ` [PATCH v2 6/7] vinyl: prepare for storing hints in vinyl data structures Vladimir Davydov
2019-04-06 20:01 ` [PATCH v2 7/7] vinyl: incorporate tuple comparison hints into " Vladimir Davydov
2019-04-07 12:33 ` [PATCH v2 0/7] Incorporate tuple comparison hints into Vinyl Vladimir Davydov
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=2a030096f8f20da9355e93f2119d421c0fd981e9.1554580275.git.vdavydov.dev@gmail.com \
--to=vdavydov.dev@gmail.com \
--cc=tarantool-patches@freelists.org \
--subject='Re: [PATCH v2 3/7] vinyl: rename tree_mem_key to vy_mem_tree_key' \
/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